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
  • Constructor Details

    • BitbucketClientCertificateAuthenticatorSource

      public BitbucketClientCertificateAuthenticatorSource()
      Constructor.
  • Method Details

    • convert

      @NonNull public BitbucketClientCertificateAuthenticator convert(@NonNull com.cloudbees.plugins.credentials.common.StandardCertificateCredentials certificateCredentials)
      Convert a StandardCertificateCredentials into a BitbucketAuthenticator
      Specified by:
      convert in class jenkins.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 class jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketClientCertificateAuthenticator,com.cloudbees.plugins.credentials.common.StandardCertificateCredentials>
      Parameters:
      ctx - the context
      Returns:
      whether this can authenticate given the context