public enum AuthenticationFailureReason extends Enum<AuthenticationFailureReason>
Enum Constant and Description |
---|
ACCOUNT_EXPIRED
Failure when the cause is the user account expired.
|
ACCOUNT_LOCKED
Failure when the cause is the user account was locked.
|
CREDENTIALS_DO_NOT_MATCH
Failure when the cause is the credentials don't match.
|
PASSWORD_EXPIRED
Failure when the cause is the user's password expired.
|
UNKNOWN
An unknown failure.
|
USER_DISABLED
Failure when the cause is the user account is disabled.
|
USER_NOT_FOUND
Failure when the cause is the user is not found.
|
Modifier and Type | Method and Description |
---|---|
static AuthenticationFailureReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthenticationFailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthenticationFailureReason USER_NOT_FOUND
public static final AuthenticationFailureReason CREDENTIALS_DO_NOT_MATCH
public static final AuthenticationFailureReason USER_DISABLED
public static final AuthenticationFailureReason ACCOUNT_EXPIRED
public static final AuthenticationFailureReason ACCOUNT_LOCKED
public static final AuthenticationFailureReason PASSWORD_EXPIRED
public static final AuthenticationFailureReason UNKNOWN
public static AuthenticationFailureReason[] values()
for (AuthenticationFailureReason c : AuthenticationFailureReason.values()) System.out.println(c);
public static AuthenticationFailureReason 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 null