Class BitbucketOAuthAuthenticator
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
-
- com.cloudbees.jenkins.plugins.bitbucket.api.credentials.BitbucketOAuthAuthenticator
-
public class BitbucketOAuthAuthenticator extends BitbucketAuthenticator
-
-
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
Constructors Constructor Description BitbucketOAuthAuthenticator(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketHref
addAuthToken(BitbucketHref bitbucketHref)
Add authentication token to clone link if authentication method requires itvoid
configureRequest(org.apache.http.HttpRequest request)
Set up request with token in header-
Methods inherited from class com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
authenticationContext, configureBuilder, configureContext, getId
-
-
-
-
Method Detail
-
configureRequest
public void configureRequest(org.apache.http.HttpRequest request)
Set up request with token in header- Overrides:
configureRequest
in classBitbucketAuthenticator
- Parameters:
request
- the request.
-
addAuthToken
public BitbucketHref addAuthToken(BitbucketHref bitbucketHref)
Description copied from class:BitbucketAuthenticator
Add authentication token to clone link if authentication method requires it- Overrides:
addAuthToken
in classBitbucketAuthenticator
- Returns:
- updated clone link
-
-