Enum Class PasswordRejectionReason
- All Implemented Interfaces:
Serializable, Comparable<PasswordRejectionReason>, Constable
Fixed internal reasons for a refused password-hashing or verification request. Applications
should present a generic login response, regardless of the reason.
- Since:
- 1.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe submitted password contains malformed UTF-16.The stored verifier is malformed or exceeds a configured verification ceiling.A legacy bcrypt candidate would be truncated and cannot prove the complete password.The submitted password exceeds a configured input ceiling.The stored verifier is a format not accepted for this operation. -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordRejectionReasonReturns the enum constant of this class with the specified name.static PasswordRejectionReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PASSWORD_TOO_LONG
The submitted password exceeds a configured input ceiling. -
INVALID_PASSWORD
The submitted password contains malformed UTF-16. -
INVALID_STORED_HASH
The stored verifier is malformed or exceeds a configured verification ceiling. -
UNSUPPORTED_STORED_HASH
The stored verifier is a format not accepted for this operation. -
LEGACY_BCRYPT_INPUT_TOO_LONG
A legacy bcrypt candidate would be truncated and cannot prove the complete password.
-
-
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
-