public abstract class SecretToCredentialConverter extends Object implements ExtensionPoint
IdCredentials.ExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
SecretToCredentialConverter() |
| Modifier and Type | Method and Description |
|---|---|
static ExtensionList<SecretToCredentialConverter> |
all()
Helper to obtain all the implementations of this
ExtensionPoint |
abstract boolean |
canConvert(String type)
Check if this converter can transform secrets of a given type.
|
abstract com.cloudbees.plugins.credentials.common.IdCredentials |
convert(io.fabric8.kubernetes.api.model.Secret secret)
Convert the given
Secret to an IdCredential. |
public abstract boolean canConvert(String type)
type - the type of secret. This is normally the symbol attached to the credential type by the credential binding plugin.true iff this SecretToCredentialConvertor can convert secrets of the specified type.public abstract com.cloudbees.plugins.credentials.common.IdCredentials convert(io.fabric8.kubernetes.api.model.Secret secret)
throws CredentialsConvertionException
Secret to an IdCredential.
This will only be called for a secret of a type that the class has previously returned true from canConvert(String).secret - the Secret to convert.CredentialsConvertionException - if the Secret could not be converted.public static final ExtensionList<SecretToCredentialConverter> all()
ExtensionPointCopyright © 2018–2020. All rights reserved.