Class BitbucketClientCertificateAuthenticatorSource
java.lang.Object
jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,com.cloudbees.plugins.credentials.common.StandardCertificateCredentials>
com.cloudbees.jenkins.plugins.bitbucket.credentials.BitbucketClientCertificateAuthenticatorSource
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class BitbucketClientCertificateAuthenticatorSource
extends jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,com.cloudbees.plugins.credentials.common.StandardCertificateCredentials>
Provider for client-cert authenticators
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificateCredentials) Convert aStandardCertificateCredentials
into aBitbucketAuthenticator
protected boolean
isFit
(jenkins.authentication.tokens.api.AuthenticationTokenContext<? super BitbucketClientCertificateAuthenticator> ctx) Whether this source works in the given context.Methods inherited from class jenkins.authentication.tokens.api.AuthenticationTokenSource
consumes, consumes, fits, matcher, produces
-
Constructor Details
-
BitbucketClientCertificateAuthenticatorSource
public BitbucketClientCertificateAuthenticatorSource()Constructor.
-
-
Method Details
-
convert
@NonNull public BitbucketClientCertificateAuthenticator convert(@NonNull com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificateCredentials) Convert aStandardCertificateCredentials
into aBitbucketAuthenticator
- Specified by:
convert
in classjenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,
com.cloudbees.plugins.credentials.common.StandardCertificateCredentials> - Parameters:
certificateCredentials
- the cert- Returns:
- an authenticator that will use the cert
-
isFit
protected boolean isFit(jenkins.authentication.tokens.api.AuthenticationTokenContext<? super BitbucketClientCertificateAuthenticator> ctx) Whether this source works in the given context. For client certs, only HTTPS BitbucketServer instances make sense- Overrides:
isFit
in classjenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,
com.cloudbees.plugins.credentials.common.StandardCertificateCredentials> - Parameters:
ctx
- the context- Returns:
- whether this can authenticate given the context
-