Package org.apache.sling.auth.core.spi
Enum AuthenticationHandler.FAILURE_REASON_CODES
- java.lang.Object
-
- java.lang.Enum<AuthenticationHandler.FAILURE_REASON_CODES>
-
- org.apache.sling.auth.core.spi.AuthenticationHandler.FAILURE_REASON_CODES
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<AuthenticationHandler.FAILURE_REASON_CODES>
- Enclosing interface:
- AuthenticationHandler
public static enum AuthenticationHandler.FAILURE_REASON_CODES extends java.lang.Enum<AuthenticationHandler.FAILURE_REASON_CODES>
This enum indicates the supported detailed login failure reason codes:invalid_login
: indicates username/password mismatch.password_expired
: indicates password has expired or was never set and change initial password is enabledaccount_locked
: the account was disabled or lockedaccount_not_found
: the account was not found (not the same as username password mismatch)expired_token
: the token credentials used have expired
- Since:
- 1.1.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNT_LOCKED
ACCOUNT_NOT_FOUND
EXPIRED_TOKEN
INVALID_LOGIN
PASSWORD_EXPIRED
PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static AuthenticationHandler.FAILURE_REASON_CODES
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AuthenticationHandler.FAILURE_REASON_CODES[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INVALID_LOGIN
public static final AuthenticationHandler.FAILURE_REASON_CODES INVALID_LOGIN
-
PASSWORD_EXPIRED
public static final AuthenticationHandler.FAILURE_REASON_CODES PASSWORD_EXPIRED
-
PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY
public static final AuthenticationHandler.FAILURE_REASON_CODES PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY
-
UNKNOWN
public static final AuthenticationHandler.FAILURE_REASON_CODES UNKNOWN
-
ACCOUNT_LOCKED
public static final AuthenticationHandler.FAILURE_REASON_CODES ACCOUNT_LOCKED
-
ACCOUNT_NOT_FOUND
public static final AuthenticationHandler.FAILURE_REASON_CODES ACCOUNT_NOT_FOUND
-
EXPIRED_TOKEN
public static final AuthenticationHandler.FAILURE_REASON_CODES EXPIRED_TOKEN
-
-
Method Detail
-
values
public static AuthenticationHandler.FAILURE_REASON_CODES[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AuthenticationHandler.FAILURE_REASON_CODES c : AuthenticationHandler.FAILURE_REASON_CODES.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticationHandler.FAILURE_REASON_CODES valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<AuthenticationHandler.FAILURE_REASON_CODES>
-
-