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 Constructor Description JenkinsToBitbucketCredentialsImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitbucketCredentialsgetBearerCredentials(String bearerToken)BitbucketCredentialstoBitbucketCredentials(com.cloudbees.plugins.credentials.Credentials credentials)Converts the input credentials to Bitbucket CredentialsBitbucketCredentialstoBitbucketCredentials(String credentialId, Item context)Converts the input credential id for the given context into Bitbucket Credentials.
-
-
-
Method Detail
-
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
public static BitbucketCredentials getBearerCredentials(String bearerToken)
-
-