- java.lang.Object
-
- java.lang.Enum<PasswordCheckStatus>
-
- rodeo.password.pgencheck.PasswordCheckStatus
-
- All Implemented Interfaces:
Serializable,Comparable<PasswordCheckStatus>
public enum PasswordCheckStatus extends Enum<PasswordCheckStatus>
Describes the result of password validation.The
OKvalue is returned by thePasswordChecker.checkfunction if the password satisfies all the criteria. One of the other values is returned if this is not the case.PasswordCheckStatusvalues are also returned by thePasswordCheckError.getErrorTypefunction.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ILLEGAL_CHARACTERpassword contains illegal characters, not present in any character groupNOT_ENOUGH_OF_CHARACTER_GROUPpassword does not contain enough representatives of a character groupOKno problem found with the passwordTOO_LONGpassword is too longTOO_MANY_OF_CHARACTER_GROUPpassword contains too many representatives from a character groupTOO_SHORTpassword is too short
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PasswordCheckStatusvalueOf(String name)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 Detail
-
OK
public static final PasswordCheckStatus OK
no problem found with the password
-
TOO_SHORT
public static final PasswordCheckStatus TOO_SHORT
password is too short
-
TOO_LONG
public static final PasswordCheckStatus TOO_LONG
password is too long
-
ILLEGAL_CHARACTER
public static final PasswordCheckStatus ILLEGAL_CHARACTER
password contains illegal characters, not present in any character group
-
NOT_ENOUGH_OF_CHARACTER_GROUP
public static final PasswordCheckStatus NOT_ENOUGH_OF_CHARACTER_GROUP
password does not contain enough representatives of a character group
-
TOO_MANY_OF_CHARACTER_GROUP
public static final PasswordCheckStatus TOO_MANY_OF_CHARACTER_GROUP
password contains too many representatives from a character group
-
-
Method Detail
-
values
public static PasswordCheckStatus[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PasswordCheckStatus c : PasswordCheckStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordCheckStatus valueOf(String name)
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
-
-