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 Summary
Enum Constants Enum Constant Description ACCOUNT_LOCKED
The account is lockedCHANGE_AFTER_RESET
INSUFFICIENT_PASSWORD_QUALITY
The password quality is not sufficientMUST_SUPPLY_OLD_PASSWORD
The ld password must be suppliedPASSWORD_EXPIRED
The password has expiredPASSWORD_IN_HISTORY
The password is in historyPASSWORD_MOD_NOT_ALLOWED
the password modification is not allowedPASSWORD_TOO_SHORT
The password is too shortPASSWORD_TOO_YOUNG
The password has been changed too recently to be used
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PasswordPolicyErrorEnum
get(int val)
Get the PasswordPolicyErrorEnum gien its numeric valueint
getValue()
static PasswordPolicyErrorEnum
valueOf(String name)
Returns 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 Detail
-
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
-
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
-
-
Method Detail
-
values
public static PasswordPolicyErrorEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PasswordPolicyErrorEnum c : PasswordPolicyErrorEnum.values()) System.out.println(c);
- 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 nameNullPointerException
- 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()
- Returns:
- the PasswordPolicyError interned value
-
-