Enum Class PasswordMode
- All Implemented Interfaces:
Serializable,Comparable<PasswordMode>,Constable
Indicates how the password should be stored in the database
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe password will be stored as plain text in the assigned database field.The password will be stored as MD5 hash in the database. -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordModeReturns the enum constant of this class with the specified name.static PasswordMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLAIN_TEXT
The password will be stored as plain text in the assigned database field. -
SHA256
The password will be stored as MD5 hash in the database. Please make sure that the password database field is 32 character long. Also at login time you will need to pre-encode the password via MD5 on the client side.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-