Enum PasswordPolicyErrorEnum

java.lang.Object
java.lang.Enum<PasswordPolicyErrorEnum>
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyErrorEnum
All Implemented Interfaces:
Serializable, Comparable<PasswordPolicyErrorEnum>

public enum PasswordPolicyErrorEnum extends Enum<PasswordPolicyErrorEnum>
constants representing PasswordPolicyErrorS as stated in the draft
Author:
Apache Directory Project
  • Enum Constant Details

    • PASSWORD_EXPIRED

      public static final PasswordPolicyErrorEnum PASSWORD_EXPIRED
      The password has expired
    • ACCOUNT_LOCKED

      public static final PasswordPolicyErrorEnum ACCOUNT_LOCKED
      The account is locked
    • CHANGE_AFTER_RESET

      public static final PasswordPolicyErrorEnum CHANGE_AFTER_RESET
      A change is requested after a password reset
    • PASSWORD_MOD_NOT_ALLOWED

      public static final PasswordPolicyErrorEnum PASSWORD_MOD_NOT_ALLOWED
      the password modification is not allowed
    • MUST_SUPPLY_OLD_PASSWORD

      public static final PasswordPolicyErrorEnum MUST_SUPPLY_OLD_PASSWORD
      The ld password must be supplied
    • INSUFFICIENT_PASSWORD_QUALITY

      public static final PasswordPolicyErrorEnum INSUFFICIENT_PASSWORD_QUALITY
      The password quality is not sufficient
    • PASSWORD_TOO_SHORT

      public static final PasswordPolicyErrorEnum PASSWORD_TOO_SHORT
      The password is too short
    • PASSWORD_TOO_YOUNG

      public static final PasswordPolicyErrorEnum PASSWORD_TOO_YOUNG
      The password has been changed too recently to be used
    • PASSWORD_IN_HISTORY

      public static final PasswordPolicyErrorEnum PASSWORD_IN_HISTORY
      The password is in history
    • PASSWORD_TOO_LONG

      public static final PasswordPolicyErrorEnum PASSWORD_TOO_LONG
      The length of the password is too long
  • Method Details

    • values

      public static PasswordPolicyErrorEnum[] 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 PasswordPolicyErrorEnum 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
    • get

      public static PasswordPolicyErrorEnum get(int val)
      Get the PasswordPolicyErrorEnum gien its numeric value
      Parameters:
      val - The numeric value to retrieve
      Returns:
      The associated PasswordPolicyErrorEnum
    • getValue

      public int getValue()
      Get the PasswordPolicyError interned value
      Returns:
      the PasswordPolicyError interned value