Enum Class PasswordPolicyErrorStatus
java.lang.Object
java.lang.Enum<PasswordPolicyErrorStatus>
org.springframework.security.ldap.ppolicy.PasswordPolicyErrorStatus
- All Implemented Interfaces:
Serializable
,Comparable<PasswordPolicyErrorStatus>
,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PasswordPolicyErrorStatus
Returns the enum constant of this class with the specified name.static PasswordPolicyErrorStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PASSWORD_EXPIRED
-
ACCOUNT_LOCKED
-
CHANGE_AFTER_RESET
-
PASSWORD_MOD_NOT_ALLOWED
-
MUST_SUPPLY_OLD_PASSWORD
-
INSUFFICIENT_PASSWORD_QUALITY
-
PASSWORD_TOO_SHORT
-
PASSWORD_TOO_YOUNG
-
PASSWORD_IN_HISTORY
-
-
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
-
getErrorCode
-
getDefaultMessage
-