Enum JenkinsSecretPasswordEncrypter
java.lang.Object
java.lang.Enum<JenkinsSecretPasswordEncrypter>
io.jenkins.plugins.railflow.jenkins.util.JenkinsSecretPasswordEncrypter
- All Implemented Interfaces:
PasswordEncrypter,Serializable,Comparable<JenkinsSecretPasswordEncrypter>
public enum JenkinsSecretPasswordEncrypter
extends Enum<JenkinsSecretPasswordEncrypter>
implements PasswordEncrypter
Default implementation which uses Jenkins
Secret;- Author:
- Sergey Oplavin
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionDecrypt the encrypted passwordEncrypt the plain text password.Returns the enum constant of this type with the specified name.static JenkinsSecretPasswordEncrypter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
THE_INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
encrypt
Description copied from interface:PasswordEncrypterEncrypt the plain text password.- Specified by:
encryptin interfacePasswordEncrypter- Parameters:
plainTextPassword- the plain text password- Returns:
- the encrypted value
-
decrypt
Description copied from interface:PasswordEncrypterDecrypt the encrypted password- Specified by:
decryptin interfacePasswordEncrypter- Parameters:
encryptedPassword- the encrypted password- Returns:
- the plain text
-