Class BitbucketUsernamePasswordAuthenticator

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
com.cloudbees.jenkins.plugins.bitbucket.api.credentials.BitbucketUsernamePasswordAuthenticator

public class BitbucketUsernamePasswordAuthenticator extends BitbucketAuthenticator
Authenticator that uses a username and password (probably the default)
  • Constructor Details

    • BitbucketUsernamePasswordAuthenticator

      public BitbucketUsernamePasswordAuthenticator(com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials credentials)
      Constructor.
      Parameters:
      credentials - the username/password that will be used
  • Method Details

    • configureContext

      public void configureContext(org.apache.http.client.protocol.HttpClientContext context, org.apache.http.HttpHost host)
      Sets up HTTP Basic Auth with the provided username/password
      Overrides:
      configureContext in class BitbucketAuthenticator
      Parameters:
      context - The connection context
      host - host being connected to
    • 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)