public static enum PasswordPolicyControl.Error extends Enum<PasswordPolicyControl.Error> implements AccountState.Error
Enum Constant and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
private int |
code
underlying error code.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic int getCode()
AccountState.Error
getCode
in interface AccountState.Error
public String getMessage()
AccountState.Error
getMessage
in interface AccountState.Error
public void throwSecurityException() throws LoginException
AccountState.Error
throwSecurityException
in interface AccountState.Error
LoginException
- for this account state errorpublic static PasswordPolicyControl.Error valueOf(int code)
code
- to find error forCopyright © 2003-2019 Virginia Tech. All Rights Reserved.