Package hudson.cli
Class CLIConnectionFactory
java.lang.Object
hudson.cli.CLIConnectionFactory
Fluent-API to instantiate
CLI.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorization(String value) For CLI connection that goes through HTTP, sometimes you need to pass in the custom authentication header (before Jenkins even get to authenticate the CLI channel.) This method lets you specify the value of this header.Convenience method to callauthorizationwith the HTTP basic authentication.Convenience method to callauthorizationwith the HTTP basic authentication.bearerAuth(String bearerToken) Convenience method to callauthorizationwith the HTTP bearer authentication.noCertificateCheck(boolean value) Skip TLS certificate and hostname verification checks.
-
Constructor Details
-
CLIConnectionFactory
public CLIConnectionFactory()
-
-
Method Details
-
authorization
For CLI connection that goes through HTTP, sometimes you need to pass in the custom authentication header (before Jenkins even get to authenticate the CLI channel.) This method lets you specify the value of this header. -
noCertificateCheck
Skip TLS certificate and hostname verification checks.- Since:
- 2.444
-
basicAuth
Convenience method to callauthorizationwith the HTTP basic authentication. Currently unused. -
basicAuth
Convenience method to callauthorizationwith the HTTP basic authentication. Cf.BasicHeaderApiTokenAuthenticator. -
bearerAuth
Convenience method to callauthorizationwith the HTTP bearer authentication. Cf.BasicHeaderApiTokenAuthenticator.
-