Class BitbucketCredentialConverter
java.lang.Object
com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
co.johnrowley.jenkins.bitbucketcredentialsk8s.BitbucketCredentialConverter
- All Implemented Interfaces:
ExtensionPoint
@Extension
public class BitbucketCredentialConverter
extends com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
SecretToCredentialConverter that converts
BitbucketTokenCredentialsImpl.-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringConvert a String representation of the base64 encoded bytes of a UTF-8 String back to a String.booleancanConvert(String type) com.atlassian.bitbucket.jenkins.internal.config.BitbucketTokenCredentialsImplconvert(io.fabric8.kubernetes.api.model.Secret secret) Methods inherited from class com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
all
-
Constructor Details
-
BitbucketCredentialConverter
public BitbucketCredentialConverter()
-
-
Method Details
-
canConvert
- Specified by:
canConvertin classcom.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter
-
convert
public com.atlassian.bitbucket.jenkins.internal.config.BitbucketTokenCredentialsImpl convert(io.fabric8.kubernetes.api.model.Secret secret) throws com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.CredentialsConvertionException - Specified by:
convertin classcom.cloudbees.jenkins.plugins.kubernetes_credentials_provider.SecretToCredentialConverter- Throws:
com.cloudbees.jenkins.plugins.kubernetes_credentials_provider.CredentialsConvertionException
-
base64DecodeToString
Convert a String representation of the base64 encoded bytes of a UTF-8 String back to a String.- Parameters:
s- the base64 encoded String representation of the bytes.- Returns:
- the String or
nullif the string could not be converted.
-