Class BitbucketClientCertificateAuthenticator
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.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
ConstructorDescriptionBitbucketClientCertificateAuthenticator
(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials credentials) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configureBuilder
(org.apache.http.impl.client.HttpClientBuilder builder) 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
configureContext, configureRequest, getCredentialsForSCM
-
Constructor Details
-
BitbucketClientCertificateAuthenticator
public BitbucketClientCertificateAuthenticator(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials credentials)
-
-
Method Details
-
configureBuilder
public void configureBuilder(org.apache.http.impl.client.HttpClientBuilder builder) Sets the SSLContext for the builder to one that will connect with the selected certificate.- Specified by:
configureBuilder
in interfaceBitbucketAuthenticator
- Parameters:
builder
- The client builder.
-
getId
- Specified by:
getId
in interfaceBitbucketAuthenticator
- Returns:
- id of the credentials used.
-