- All Implemented Interfaces:
Serializable
,Comparable<PasswordCheckStatus>
Describes the result of password validation.
The OK
value is returned by the PasswordChecker.check
function
if the password satisfies all the criteria. One of the other values is returned if this is not the case.
PasswordCheckStatus
values are also returned by
the PasswordCheckError.getErrorType
function.
-
Enum Constant Summary
Enum ConstantDescriptionpassword contains illegal characters, not present in any character grouppassword does not contain enough representatives of a character groupno problem found with the passwordpassword is too longpassword contains too many representatives from a character grouppassword is too short -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordCheckStatus
Returns the enum constant of this type with the specified name.static PasswordCheckStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OK
no problem found with the password -
TOO_SHORT
password is too short -
TOO_LONG
password is too long -
ILLEGAL_CHARACTER
password contains illegal characters, not present in any character group -
NOT_ENOUGH_OF_CHARACTER_GROUP
password does not contain enough representatives of a character group -
TOO_MANY_OF_CHARACTER_GROUP
password contains too many representatives from a character group
-
-
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
-