Class JenkinsToBitbucketCredentialsImpl
java.lang.Object
com.atlassian.bitbucket.jenkins.internal.credentials.JenkinsToBitbucketCredentialsImpl
- All Implemented Interfaces:
JenkinsToBitbucketCredentials
@Singleton
public class JenkinsToBitbucketCredentialsImpl
extends Object
implements JenkinsToBitbucketCredentials
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic BitbucketCredentialsgetBearerCredentials(String bearerToken) toBitbucketCredentials(com.cloudbees.plugins.credentials.Credentials credentials) Converts the input credentials to Bitbucket CredentialstoBitbucketCredentials(String credentialId, Item context) Converts the input credential id for the given context into Bitbucket Credentials.
-
Constructor Details
-
JenkinsToBitbucketCredentialsImpl
public JenkinsToBitbucketCredentialsImpl()
-
-
Method Details
-
toBitbucketCredentials
public BitbucketCredentials toBitbucketCredentials(@Nullable String credentialId, @Nullable Item context) Description copied from interface:JenkinsToBitbucketCredentialsConverts the input credential id for the given context into Bitbucket Credentials.- Specified by:
toBitbucketCredentialsin interfaceJenkinsToBitbucketCredentials- Parameters:
credentialId- the credentials idcontext- thecontextto retrieve the credentials from- Returns:
- Bitbucket credentials
-
toBitbucketCredentials
public BitbucketCredentials toBitbucketCredentials(@Nullable com.cloudbees.plugins.credentials.Credentials credentials) Description copied from interface:JenkinsToBitbucketCredentialsConverts the input credentials to Bitbucket Credentials- Specified by:
toBitbucketCredentialsin interfaceJenkinsToBitbucketCredentials- Parameters:
credentials- credentials- Returns:
- Bitbucket credentials
-
getBearerCredentials
-