public static enum PasswordExpirationAccountState.Error extends Enum<PasswordExpirationAccountState.Error> implements AccountState.Error
Enum Constant and Description |
---|
PASSWORD_EXPIRED
password expired.
|
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 PasswordExpirationAccountState.Error |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordExpirationAccountState.Error[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordExpirationAccountState.Error PASSWORD_EXPIRED
public static PasswordExpirationAccountState.Error[] values()
for (PasswordExpirationAccountState.Error c : PasswordExpirationAccountState.Error.values()) System.out.println(c);
public static PasswordExpirationAccountState.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 errorCopyright © 2003-2019 Virginia Tech. All Rights Reserved.