public enum DefaultCustomSecret extends Enum<DefaultCustomSecret> implements CustomSecret
CustomSecret
.Enum Constant and Description |
---|
THE_INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
getEncryptedValue(String plainTextPassword)
Gets the encrypted value.
|
String |
getPlainText(hudson.util.Secret encryptedPassword)
Get plain text password from secret.
|
String |
getPlainText(String encryptedPassword)
Gets the plain text.
|
hudson.util.Secret |
getSecret(String plainTextPassword)
Get Secret from plain text password.
|
static DefaultCustomSecret |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultCustomSecret[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DefaultCustomSecret THE_INSTANCE
public static DefaultCustomSecret[] values()
for (DefaultCustomSecret c : DefaultCustomSecret.values()) System.out.println(c);
public static DefaultCustomSecret valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getEncryptedValue(String plainTextPassword)
CustomSecret
getEncryptedValue
in interface CustomSecret
plainTextPassword
- the plain text passwordpublic String getPlainText(String encryptedPassword)
CustomSecret
getPlainText
in interface CustomSecret
encryptedPassword
- the encrypted passwordpublic String getPlainText(hudson.util.Secret encryptedPassword)
CustomSecret
getPlainText
in interface CustomSecret
encryptedPassword
- secret, might be null
.null
if secret
is null.public hudson.util.Secret getSecret(String plainTextPassword)
CustomSecret
getSecret
in interface CustomSecret
plainTextPassword
- plain text password, might be null
.null
if plainTextPassword is null.Copyright © 2016–2023. All rights reserved.