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
  • 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 class BitbucketAuthenticator
      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 class BitbucketAuthenticator
      Returns:
      credentials to be passed to GitClient.setCredentials(StandardUsernameCredentials)