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 BitbucketCredentials
getBearerCredentials(String bearerToken)
BitbucketCredentials
toBitbucketCredentials(com.cloudbees.plugins.credentials.Credentials credentials)
Converts the input credentials to Bitbucket CredentialsBitbucketCredentials
toBitbucketCredentials(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:JenkinsToBitbucketCredentials
Converts the input credential id for the given context into Bitbucket Credentials.- Specified by:
toBitbucketCredentials
in interfaceJenkinsToBitbucketCredentials
- Parameters:
credentialId
- the credentials idcontext
- thecontext
to retrieve the credentials from- Returns:
- Bitbucket credentials
-
toBitbucketCredentials
public BitbucketCredentials toBitbucketCredentials(@Nullable com.cloudbees.plugins.credentials.Credentials credentials)
Description copied from interface:JenkinsToBitbucketCredentials
Converts the input credentials to Bitbucket Credentials- Specified by:
toBitbucketCredentials
in interfaceJenkinsToBitbucketCredentials
- Parameters:
credentials
- credentials- Returns:
- Bitbucket credentials
-
getBearerCredentials
public static BitbucketCredentials getBearerCredentials(String bearerToken)
-
-