public abstract class SecretToCredentialConverter extends Object implements hudson.ExtensionPoint
IdCredentials.| 构造器和说明 |
|---|
SecretToCredentialConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static hudson.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.kubernetes.client.models.V1Secret secret)
Convert the given
Secret to an IdCredential. |
static SecretToCredentialConverter |
lookup(String type)
Helper to obtain the SecretToCredentialConvertor that can convert this type of secret.
|
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.kubernetes.client.models.V1Secret secret)
throws CredentialsConversionException
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.CredentialsConversionException - if the Secret could not be converted.public static hudson.ExtensionList<SecretToCredentialConverter> all()
ExtensionPointpublic static SecretToCredentialConverter lookup(String type)
type - the type of the secret to convert.Copyright © 2016–2019. All rights reserved.