org.springframework.security.ldap.ppolicy
Enum PasswordPolicyErrorStatus
java.lang.Object
java.lang.Enum<PasswordPolicyErrorStatus>
org.springframework.security.ldap.ppolicy.PasswordPolicyErrorStatus
- All Implemented Interfaces:
- Serializable, Comparable<PasswordPolicyErrorStatus>
public enum PasswordPolicyErrorStatus
- extends 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
- Author:
- Luke Taylor
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
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(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 name
NullPointerException
- if the argument is null
getErrorCode
public String getErrorCode()
getDefaultMessage
public String getDefaultMessage()
Copyright © 2004-2009 SpringSource, Inc. All Rights Reserved.