Enum PasswordCheckStatus

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 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.

See Also:
  • Enum Constant Details

    • 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 Details

    • values

      public static PasswordCheckStatus[] 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

      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 name
      NullPointerException - if the argument is null