Package com.goterl.lazysodium.interfaces
Enum Class PwHash.NeedsRehashResult
- All Implemented Interfaces:
Serializable,Comparable<PwHash.NeedsRehashResult>,Constable
- Enclosing interface:
- PwHash
Possible results of *NeedsRehash functions
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe string does not appear to be a valid hash.The string appears to be a valid hash but does not match the requested parameters; a new hash should be computed the next time the user logs in.The parameters already match, no rehash is needed. -
Method Summary
Modifier and TypeMethodDescriptionstatic PwHash.NeedsRehashResultvalueOf(int alg) Returns the enum constant of this class with the specified name.static PwHash.NeedsRehashResultReturns the enum constant of this class with the specified name.static PwHash.NeedsRehashResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REHASH_NEEDED
The parameters already match, no rehash is needed. -
NEEDS_REHASH
The string appears to be a valid hash but does not match the requested parameters; a new hash should be computed the next time the user logs in. -
INVALID_HASH
The string does not appear to be a valid hash.
-
-
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
-
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:
alg- 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
-