public static enum PasswordExpirationAccountState.Error extends java.lang.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.
|
java.lang.String |
getMessage()
Returns the error message.
|
void |
throwSecurityException()
Throws the LoginException that best maps to this error.
|
static PasswordExpirationAccountState.Error |
valueOf(java.lang.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(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getCode()
AccountState.ErrorgetCode in interface AccountState.Errorpublic java.lang.String getMessage()
AccountState.ErrorgetMessage in interface AccountState.Errorpublic void throwSecurityException()
throws javax.security.auth.login.LoginException
AccountState.ErrorthrowSecurityException in interface AccountState.Errorjavax.security.auth.login.LoginException - for this account state error