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
addAuthToken, authenticationContext, configureBuilder, configureContext, getId
-
Constructor Details
-
BitbucketOAuthAuthenticator
public BitbucketOAuthAuthenticator(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials) Constructor.- Parameters:
credentials
- the key/pass that will be used
-
-
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)
-