Class BitbucketAccessTokenAuthenticatorSource
- java.lang.Object
-
- jenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketAccessTokenAuthenticator,org.jenkinsci.plugins.plaincredentials.StringCredentials>
-
- com.cloudbees.jenkins.plugins.bitbucket.api.credentials.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description BitbucketAccessTokenAuthenticatorSource()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitbucketAccessTokenAuthenticator
convert(org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
Converts string credentials to an authenticator.boolean
isFit(jenkins.authentication.tokens.api.AuthenticationTokenContext ctx)
Whether this source works in the given context.
-
-
-
Method Detail
-
convert
@NonNull public BitbucketAccessTokenAuthenticator convert(@NonNull org.jenkinsci.plugins.plaincredentials.StringCredentials credentials)
Converts string credentials to an authenticator.- Specified by:
convert
in classjenkins.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 classjenkins.authentication.tokens.api.AuthenticationTokenSource<BitbucketAccessTokenAuthenticator,org.jenkinsci.plugins.plaincredentials.StringCredentials>
- Parameters:
ctx
- the context- Returns:
- whether this can authenticate given the context
-
-