Package hudson.cli
Class CLIConnectionFactory
- java.lang.Object
-
- hudson.cli.CLIConnectionFactory
-
-
Constructor Summary
Constructors Constructor Description CLIConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CLIConnectionFactoryauthorization(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.CLIConnectionFactorybasicAuth(String userInfo)Convenience method to callauthorizationwith the HTTP basic authentication.CLIConnectionFactorybasicAuth(String username, String password)Convenience method to callauthorizationwith the HTTP basic authentication.CLIConnectionFactorybearerAuth(String bearerToken)Convenience method to callauthorizationwith the HTTP bearer authentication.
-
-
-
Method Detail
-
authorization
public CLIConnectionFactory authorization(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.
-
basicAuth
public CLIConnectionFactory basicAuth(String username, String password)
Convenience method to callauthorizationwith the HTTP basic authentication. Currently unused.
-
basicAuth
public CLIConnectionFactory basicAuth(String userInfo)
Convenience method to callauthorizationwith the HTTP basic authentication. Cf.BasicHeaderApiTokenAuthenticator.
-
bearerAuth
public CLIConnectionFactory bearerAuth(String bearerToken)
Convenience method to callauthorizationwith the HTTP bearer authentication. Cf.BasicHeaderApiTokenAuthenticator.
-
-