public class GoogleRobotUsernamePasswordModule extends Object implements Serializable
GoogleRobotUsernamePassword plugin.| Modifier and Type | Class and Description |
|---|---|
static class |
GoogleRobotUsernamePasswordModule.Strategy
Strategy for choosing the username based on URL patterns.
|
| Constructor and Description |
|---|
GoogleRobotUsernamePasswordModule(GoogleRobotUsernamePasswordModule.Strategy strategy) |
| Modifier and Type | Method and Description |
|---|---|
GoogleRobotUsernamePasswordModule |
forRemote(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
Return a version of the module that is capable of being used on
a remote machine, with a specific set of credentials.
|
String |
getIdentity(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
Retrieve the identity associated with the given
GoogleRobotCredentials. |
com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement |
getRequirement() |
GoogleRobotUsernamePasswordModule.Strategy |
getStrategy() |
hudson.util.Secret |
getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
Retrieve an access token for the given
GoogleRobotCredentials. |
public GoogleRobotUsernamePasswordModule(GoogleRobotUsernamePasswordModule.Strategy strategy)
strategy - the strategy to give username.public GoogleRobotUsernamePasswordModule.Strategy getStrategy()
public String getIdentity(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
GoogleRobotCredentials.public com.google.jenkins.plugins.credentials.oauth.GoogleOAuth2ScopeRequirement getRequirement()
public hudson.util.Secret getToken(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials)
GoogleRobotCredentials.public GoogleRobotUsernamePasswordModule forRemote(com.google.jenkins.plugins.credentials.oauth.GoogleRobotCredentials credentials) throws GeneralSecurityException
GeneralSecurityExceptionCopyright © 2016. All rights reserved.