Class BitbucketOAuthAuthenticator
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
com.cloudbees.jenkins.plugins.bitbucket.api.credentials.BitbucketOAuthAuthenticator
-
Field Summary
Fields inherited from class com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
BITBUCKET_INSTANCE_TYPE, BITBUCKET_INSTANCE_TYPE_CLOUD, BITBUCKET_INSTANCE_TYPE_SERVER, SCHEME, SERVER_URL
-
Constructor Summary
ConstructorDescriptionBitbucketOAuthAuthenticator
(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureRequest
(org.apache.http.HttpRequest request) Set up request with token in headercom.cloudbees.plugins.credentials.common.StandardUsernameCredentials
Provides credentials that can be used for authenticated interactions with SCM.Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
authenticationContext, configureBuilder, configureContext, getId
-
Constructor Details
-
BitbucketOAuthAuthenticator
public BitbucketOAuthAuthenticator(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) throws jenkins.authentication.tokens.api.AuthenticationTokenException Constructor.- Parameters:
credentials
- the key/pass that will be used- Throws:
jenkins.authentication.tokens.api.AuthenticationTokenException
-
-
Method Details
-
configureRequest
public void configureRequest(org.apache.http.HttpRequest request) Set up request with token in header- Overrides:
configureRequest
in classBitbucketAuthenticator
- Parameters:
request
- the request.
-
getCredentialsForSCM
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentialsForSCM()Description copied from class:BitbucketAuthenticator
Provides credentials that can be used for authenticated interactions with SCM.- Overrides:
getCredentialsForSCM
in classBitbucketAuthenticator
- Returns:
- credentials to be passed to
GitClient.setCredentials(StandardUsernameCredentials)
-