@Extension public class OpaqueCredentialsConverter extends SecretToCredentialConverter
| 构造器和说明 |
|---|
OpaqueCredentialsConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
canConvert(String type)
Check if this converter can transform secrets of a given type.
|
com.cloudbees.plugins.credentials.common.IdCredentials |
convert(io.kubernetes.client.models.V1Secret secret)
Convert the given
Secret to an IdCredential. |
all, lookuppublic boolean canConvert(String type)
SecretToCredentialConvertercanConvert 在类中 SecretToCredentialConvertertype - 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 com.cloudbees.plugins.credentials.common.IdCredentials convert(io.kubernetes.client.models.V1Secret secret)
throws CredentialsConversionException
SecretToCredentialConverterSecret to an IdCredential.
This will only be called for a secret of a type that the class has previously returned true from SecretToCredentialConverter.canConvert(String).convert 在类中 SecretToCredentialConvertersecret - the Secret to convert.CredentialsConversionException - if the Secret could not be converted.Copyright © 2016–2019. All rights reserved.