Enum Class PasswordPolicyErrorType

java.lang.Object
java.lang.Enum<PasswordPolicyErrorType>
org.forgerock.opendj.ldap.controls.PasswordPolicyErrorType
All Implemented Interfaces:
Serializable, Comparable<PasswordPolicyErrorType>, java.lang.constant.Constable

public enum PasswordPolicyErrorType extends Enum<PasswordPolicyErrorType>
A password policy error type as defined in draft-behera-ldap-password-policy is used to indicate problems concerning a user's account or password.
See Also:
  • Enum Constant Details

    • PASSWORD_EXPIRED

      public static final PasswordPolicyErrorType PASSWORD_EXPIRED
      Indicates that the password has expired and must be reset.
    • ACCOUNT_LOCKED

      public static final PasswordPolicyErrorType ACCOUNT_LOCKED
      Indicates that the user's account has been locked.
    • CHANGE_AFTER_RESET

      public static final PasswordPolicyErrorType CHANGE_AFTER_RESET
      Indicates that the password must be changed before the user will be allowed to perform any operation other than bind and modify.
    • PASSWORD_MOD_NOT_ALLOWED

      public static final PasswordPolicyErrorType PASSWORD_MOD_NOT_ALLOWED
      Indicates that a user is restricted from changing her password.
    • MUST_SUPPLY_OLD_PASSWORD

      public static final PasswordPolicyErrorType MUST_SUPPLY_OLD_PASSWORD
      Indicates that the old password must be supplied in order to modify the password.
    • INSUFFICIENT_PASSWORD_QUALITY

      public static final PasswordPolicyErrorType INSUFFICIENT_PASSWORD_QUALITY
      Indicates that a password doesn't pass quality checking.
    • PASSWORD_TOO_SHORT

      public static final PasswordPolicyErrorType PASSWORD_TOO_SHORT
      Indicates that a password is not long enough.
    • PASSWORD_TOO_YOUNG

      public static final PasswordPolicyErrorType PASSWORD_TOO_YOUNG
      Indicates that the age of the password to be modified is not yet old enough.
    • PASSWORD_IN_HISTORY

      public static final PasswordPolicyErrorType PASSWORD_IN_HISTORY
      Indicates that a password has already been used and the user must choose a different one.
  • Method Details

    • values

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

      public static PasswordPolicyErrorType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PasswordPolicyErrorType>
    • intValue

      public int intValue()
      Returns the integer value for this password policy error type.
      Returns:
      the integer value for this password policy error type