Enum Class PasswordPolicyConfig.LOCK_REASON

java.lang.Object
java.lang.Enum<PasswordPolicyConfig.LOCK_REASON>
com.isode.dsapi.config.PasswordPolicyConfig.LOCK_REASON
All Implemented Interfaces:
Serializable, Comparable<PasswordPolicyConfig.LOCK_REASON>, Constable
Enclosing class:
PasswordPolicyConfig

public static enum PasswordPolicyConfig.LOCK_REASON extends Enum<PasswordPolicyConfig.LOCK_REASON>
Enum representing possible problems with a particular account.
  • Enum Constant Details

    • PASSWORD_OUT_OF_VALIDITY

      public static final PasswordPolicyConfig.LOCK_REASON PASSWORD_OUT_OF_VALIDITY
      The current time is before "pwdStartTime" or after "pwdEndTime". This value is associated with an Instant object representing the time when the password will become valid (if it's not yet valid) or the time when it stopped being valid (if it's no longer valid).
    • PASSWORD_IDLE

      public static final PasswordPolicyConfig.LOCK_REASON PASSWORD_IDLE
      The password has not successfully been used for more than "pwdMaxIdle" seconds. This value is associated with an Instant object representing the time when the password became idle (i.e. the last time the user could have authenticated before the idle lock kicked in).
    • PASSWORD_EXPIRED

      public static final PasswordPolicyConfig.LOCK_REASON PASSWORD_EXPIRED
      The password has expired. This value is associated with an Instant object representing the time when the password expired.
    • PASSWORD_RESET_REQUIRED

      public static final PasswordPolicyConfig.LOCK_REASON PASSWORD_RESET_REQUIRED
      A password reset is required before this user can authenticate. There is no extra information associated with this status
    • NO_PASSWORD_PRESENT

      public static final PasswordPolicyConfig.LOCK_REASON NO_PASSWORD_PRESENT
      The user's entry doesn't have a password attribute (as specified by password policy) and so will be unable to authenticate using password-based authentication. This value is associated with an AttributeType object representing the attribute type for the user password as defined by password policy (i.e. the attribute that is missing from the user's entry)
    • ADMIN_LOCKED

      public static final PasswordPolicyConfig.LOCK_REASON ADMIN_LOCKED
      Account is admin locked. This value is associated with a String object representing the reason for the account being locked (which may be the empty String "").
  • Method Details

    • values

      public static PasswordPolicyConfig.LOCK_REASON[] 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 PasswordPolicyConfig.LOCK_REASON 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<PasswordPolicyConfig.LOCK_REASON>