Package com.isode.dsapi.config
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
Enum representing possible problems with a particular account.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAccount is admin locked.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.The password has expired.The password has not successfully been used for more than "pwdMaxIdle" seconds.The current time is before "pwdStartTime" or after "pwdEndTime".A password reset is required before this user can authenticate. -
Method Summary
Modifier and TypeMethodDescriptiontoString()
Returns the enum constant of this class with the specified name.static PasswordPolicyConfig.LOCK_REASON[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
The password has expired. This value is associated with an Instant object representing the time when the password expired. -
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
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
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
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
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<PasswordPolicyConfig.LOCK_REASON>
-