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)
      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 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)