Class BitbucketUsernamePasswordAuthenticator

java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.impl.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

    • configureRequest

      public void configureRequest(org.apache.hc.core5.http.HttpRequest request)
      Description copied from interface: BitbucketAuthenticator
      Configures an HttpRequest. Override this if your authentication method needs to set headers on a per-request basis.
      Specified by:
      configureRequest in interface BitbucketAuthenticator
      Parameters:
      request - the request.
    • getId

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