Class BitbucketClientCertificateAuthenticatorSource
- java.lang.Object
-
- jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,com.cloudbees.plugins.credentials.common.StandardCertificateCredentials>
-
- com.cloudbees.jenkins.plugins.bitbucket.api.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
Constructors Constructor Description BitbucketClientCertificateAuthenticatorSource()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketClientCertificateAuthenticator
convert(com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificateCredentials)
Convert aStandardCertificateCredentials
into aBitbucketAuthenticator
boolean
isFit(jenkins.authentication.tokens.api.AuthenticationTokenContext ctx)
Whether this source works in the given context.
-
-
-
Method Detail
-
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
public boolean isFit(jenkins.authentication.tokens.api.AuthenticationTokenContext 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
-
-