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 void
configureRequest(org.apache.http.HttpRequest request)
Set up request with token in headerString
getUserUri()
Return the user to be used in the clone Uri.-
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.
-
getUserUri
public String getUserUri()
Description copied from class:BitbucketAuthenticator
Return the user to be used in the clone Uri. Override this if your authentication method needs to set the user in the repository Uri- Overrides:
getUserUri
in classBitbucketAuthenticator
- Returns:
- user name to use in the repository Uri
-
-