Class BitbucketUsernamePasswordAuthenticator

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.credentials.BitbucketUsernamePasswordAuthenticator
All Implemented Interfaces:
BitbucketAuthenticator

public class BitbucketUsernamePasswordAuthenticator extends Object implements 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
      Specified by:
      configureContext in interface BitbucketAuthenticator
      Parameters:
      context - The connection context
      host - host being connected to
    • getId

      public String getId()
      Specified by:
      getId in interface BitbucketAuthenticator
      Returns:
      id of the credentials used.