Enum Class PasswordPolicyErrorType
- All Implemented Interfaces:
Serializable,Comparable<PasswordPolicyErrorType>,java.lang.constant.Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates that the user's account has been locked.Indicates that the password must be changed before the user will be allowed to perform any operation other than bind and modify.Indicates that a password doesn't pass quality checking.Indicates that the old password must be supplied in order to modify the password.Indicates that the password has expired and must be reset.Indicates that a password has already been used and the user must choose a different one.Indicates that a user is restricted from changing her password.Indicates that a password is not long enough.Indicates that the age of the password to be modified is not yet old enough. -
Method Summary
Modifier and TypeMethodDescriptionintintValue()Returns the integer value for this password policy error type.toString()static PasswordPolicyErrorTypeReturns the enum constant of this class with the specified name.static PasswordPolicyErrorType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASSWORD_EXPIRED
Indicates that the password has expired and must be reset. -
ACCOUNT_LOCKED
Indicates that the user's account has been locked. -
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
Indicates that a user is restricted from changing her password. -
MUST_SUPPLY_OLD_PASSWORD
Indicates that the old password must be supplied in order to modify the password. -
INSUFFICIENT_PASSWORD_QUALITY
Indicates that a password doesn't pass quality checking. -
PASSWORD_TOO_SHORT
Indicates that a password is not long enough. -
PASSWORD_TOO_YOUNG
Indicates that the age of the password to be modified is not yet old enough. -
PASSWORD_IN_HISTORY
Indicates that a password has already been used and the user must choose a different one.
-
-
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:
toStringin classEnum<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
-