Enum PasswordPolicyErrorStatus
- java.lang.Object
-
- java.lang.Enum<PasswordPolicyErrorStatus>
-
- org.springframework.security.ldap.ppolicy.PasswordPolicyErrorStatus
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PasswordPolicyErrorStatus>
public enum PasswordPolicyErrorStatus extends java.lang.Enum<PasswordPolicyErrorStatus>
Defines status codes for use with PasswordPolicyException, with error codes (for message source lookup) and default messages.PasswordPolicyResponseValue ::= SEQUENCE { warning [0] CHOICE { timeBeforeExpiration [0] INTEGER (0 .. maxInt), graceAuthNsRemaining [1] INTEGER (0 .. maxInt) } OPTIONAL, error [1] ENUMERATED { passwordExpired (0), accountLocked (1), changeAfterReset (2), passwordModNotAllowed (3), mustSupplyOldPassword (4), insufficientPasswordQuality (5), passwordTooShort (6), passwordTooYoung (7), passwordInHistory (8) } OPTIONAL }
- Since:
- 3.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_LOCKED
CHANGE_AFTER_RESET
INSUFFICIENT_PASSWORD_QUALITY
MUST_SUPPLY_OLD_PASSWORD
PASSWORD_EXPIRED
PASSWORD_IN_HISTORY
PASSWORD_MOD_NOT_ALLOWED
PASSWORD_TOO_SHORT
PASSWORD_TOO_YOUNG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDefaultMessage()
java.lang.String
getErrorCode()
static PasswordPolicyErrorStatus
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PasswordPolicyErrorStatus[]
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 PasswordPolicyErrorStatus PASSWORD_EXPIRED
-
ACCOUNT_LOCKED
public static final PasswordPolicyErrorStatus ACCOUNT_LOCKED
-
CHANGE_AFTER_RESET
public static final PasswordPolicyErrorStatus CHANGE_AFTER_RESET
-
PASSWORD_MOD_NOT_ALLOWED
public static final PasswordPolicyErrorStatus PASSWORD_MOD_NOT_ALLOWED
-
MUST_SUPPLY_OLD_PASSWORD
public static final PasswordPolicyErrorStatus MUST_SUPPLY_OLD_PASSWORD
-
INSUFFICIENT_PASSWORD_QUALITY
public static final PasswordPolicyErrorStatus INSUFFICIENT_PASSWORD_QUALITY
-
PASSWORD_TOO_SHORT
public static final PasswordPolicyErrorStatus PASSWORD_TOO_SHORT
-
PASSWORD_TOO_YOUNG
public static final PasswordPolicyErrorStatus PASSWORD_TOO_YOUNG
-
PASSWORD_IN_HISTORY
public static final PasswordPolicyErrorStatus PASSWORD_IN_HISTORY
-
-
Method Detail
-
values
public static PasswordPolicyErrorStatus[] 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 (PasswordPolicyErrorStatus c : PasswordPolicyErrorStatus.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PasswordPolicyErrorStatus valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getErrorCode
public java.lang.String getErrorCode()
-
getDefaultMessage
public java.lang.String getDefaultMessage()
-
-