Enum PasswordPolicyErrorEnum
java.lang.Object
java.lang.Enum<PasswordPolicyErrorEnum>
org.apache.directory.api.ldap.extras.controls.ppolicy.PasswordPolicyErrorEnum
- All Implemented Interfaces:
Serializable, Comparable<PasswordPolicyErrorEnum>
constants representing PasswordPolicyErrorS as stated in the draft
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe account is lockedA change is requested after a password resetThe password quality is not sufficientThe ld password must be suppliedThe password has expiredThe password is in historythe password modification is not allowedThe length of the password is too longThe password is too shortThe password has been changed too recently to be used -
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicyErrorEnumget(int val) Get the PasswordPolicyErrorEnum gien its numeric valueintgetValue()Get the PasswordPolicyError interned valuestatic PasswordPolicyErrorEnumReturns the enum constant of this type with the specified name.static PasswordPolicyErrorEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PASSWORD_EXPIRED
The password has expired -
ACCOUNT_LOCKED
The account is locked -
CHANGE_AFTER_RESET
A change is requested after a password reset -
PASSWORD_MOD_NOT_ALLOWED
the password modification is not allowed -
MUST_SUPPLY_OLD_PASSWORD
The ld password must be supplied -
INSUFFICIENT_PASSWORD_QUALITY
The password quality is not sufficient -
PASSWORD_TOO_SHORT
The password is too short -
PASSWORD_TOO_YOUNG
The password has been changed too recently to be used -
PASSWORD_IN_HISTORY
The password is in history -
PASSWORD_TOO_LONG
The length of the password is too long
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
get
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
-