Enum Class HashMethod
- All Implemented Interfaces:
Serializable,Comparable<HashMethod>,Constable
Hash method supported by the coLAB platform
- Author:
- maxence
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPBKDF2 with HMAC SHA-512, 65536 iterations generates 64 bytes (ie. -
Method Summary
Modifier and TypeMethodDescriptionabstract byte[]compute digest from value.If given, the value is prefixed with the salt.byte[]static HashMethodReturns the enum constant of this class with the specified name.static HashMethod[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PBKDF2WithHmacSHA512_65536_64
PBKDF2 with HMAC SHA-512, 65536 iterations generates 64 bytes (ie. 512 bits as SHA-512 does)
-
-
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
-
hash
compute digest from value.If given, the value is prefixed with the salt.- Parameters:
value- the value to hashsalt- optional salt- Returns:
- digested salted value
-
hash
- Parameters:
value- value to hashhexSalt- hexEncoded salt- Returns:
- digested salted value
- See Also:
-