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
-
Field Summary
Fields inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
BITBUCKET_INSTANCE_TYPE, BITBUCKET_INSTANCE_TYPE_CLOUD, BITBUCKET_INSTANCE_TYPE_SERVER, SCHEME, SERVER_URL
-
Constructor Summary
ConstructorsConstructorDescriptionBitbucketClientCertificateAuthenticator
(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.getId()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketAuthenticator
configureBuilder, configureRequest, getCredentialsForSCM
-
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 interfaceBitbucketAuthenticator
- Parameters:
context
- The client builder contexthost
- the target host name
-
getId
- Specified by:
getId
in interfaceBitbucketAuthenticator
- Returns:
- id of the credentials used.
-