|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<PasswordPolicyControl.Error>
org.ldaptive.control.PasswordPolicyControl.Error
public static enum PasswordPolicyControl.Error
Enum for ppolicy errors.
| Enum Constant Summary | |
|---|---|
ACCOUNT_LOCKED
account locked. |
|
CHANGE_AFTER_RESET
change after reset. |
|
INSUFFICIENT_PASSWORD_QUALITY
insufficient password quality. |
|
MUST_SUPPLY_OLD_PASSWORD
must supply old password. |
|
PASSWORD_EXPIRED
password expired. |
|
PASSWORD_IN_HISTORY
password in history. |
|
PASSWORD_MOD_NOT_ALLOWED
password modification not allowed. |
|
PASSWORD_TOO_SHORT
password too short. |
|
PASSWORD_TOO_YOUNG
password too young. |
|
| Method Summary | |
|---|---|
int |
getCode()
Returns the error code. |
String |
getMessage()
Returns the error message. |
void |
throwSecurityException()
Throws the LoginException that best maps to this error. |
static PasswordPolicyControl.Error |
valueOf(int code)
Returns the error for the supplied integer constant. |
static PasswordPolicyControl.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PasswordPolicyControl.Error[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final PasswordPolicyControl.Error PASSWORD_EXPIRED
public static final PasswordPolicyControl.Error ACCOUNT_LOCKED
public static final PasswordPolicyControl.Error CHANGE_AFTER_RESET
public static final PasswordPolicyControl.Error PASSWORD_MOD_NOT_ALLOWED
public static final PasswordPolicyControl.Error MUST_SUPPLY_OLD_PASSWORD
public static final PasswordPolicyControl.Error INSUFFICIENT_PASSWORD_QUALITY
public static final PasswordPolicyControl.Error PASSWORD_TOO_SHORT
public static final PasswordPolicyControl.Error PASSWORD_TOO_YOUNG
public static final PasswordPolicyControl.Error PASSWORD_IN_HISTORY
| Method Detail |
|---|
public static PasswordPolicyControl.Error[] values()
for (PasswordPolicyControl.Error c : PasswordPolicyControl.Error.values()) System.out.println(c);
public static PasswordPolicyControl.Error valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getCode()
getCode in interface AccountState.Errorpublic String getMessage()
getMessage in interface AccountState.Error
public void throwSecurityException()
throws LoginException
throwSecurityException in interface AccountState.ErrorLoginException - for this account state errorpublic static PasswordPolicyControl.Error valueOf(int code)
code - to find error for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||