Class BitbucketAccessTokenAuthenticatorSource

  • All Implemented Interfaces:
    ExtensionPoint

    @Extension
    public class BitbucketAccessTokenAuthenticatorSource
    extends jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketAccessTokenAuthenticator,​org.jenkinsci.plugins.plaincredentials.StringCredentials>
    Source for access token authenticators.
    • Constructor Detail

      • BitbucketAccessTokenAuthenticatorSource

        public BitbucketAccessTokenAuthenticatorSource()
        Constructor.
    • Method Detail

      • convert

        @NonNull
        public BitbucketAccessTokenAuthenticator convert​(@NonNull
                                                         org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
        Converts string credentials to an authenticator.
        Specified by:
        convert in class jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketAccessTokenAuthenticator,​org.jenkinsci.plugins.plaincredentials.StringCredentials>
        Parameters:
        credentials - the access token
        Returns:
        an authenticator that will use the access token
      • isFit

        public boolean isFit​(jenkins.authentication.tokens.api.AuthenticationTokenContext ctx)
        Whether this source works in the given context.
        Overrides:
        isFit in class jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketAccessTokenAuthenticator,​org.jenkinsci.plugins.plaincredentials.StringCredentials>
        Parameters:
        ctx - the context
        Returns:
        whether this can authenticate given the context