Class BitbucketClientCertificateAuthenticator

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

public class BitbucketClientCertificateAuthenticator extends Object implements BitbucketAuthenticator
Authenticates against Bitbucket using a TLS client certificate
  • Constructor Details

    • BitbucketClientCertificateAuthenticator

      public BitbucketClientCertificateAuthenticator(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials credentials)
  • Method Details

    • configureContext

      public void configureContext(org.apache.hc.client5.http.protocol.HttpClientContext context, org.apache.hc.core5.http.HttpHost host)
      Sets the SSLContext for the builder to one that will connect with the selected certificate.
      Specified by:
      configureContext in interface BitbucketAuthenticator
      Parameters:
      context - The client builder context
      host - the target host name
    • getId

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