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:
Serializable,Comparable<AuthenticationHandler.FAILURE_REASON_CODES>,java.lang.constant.Constable
- Enclosing interface:
AuthenticationHandler
public static enum AuthenticationHandler.FAILURE_REASON_CODES
extends 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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
-
Enum Constant Details
-
INVALID_LOGIN
-
PASSWORD_EXPIRED
-
PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY
public static final AuthenticationHandler.FAILURE_REASON_CODES PASSWORD_EXPIRED_AND_NEW_PASSWORD_IN_HISTORY -
UNKNOWN
-
ACCOUNT_LOCKED
-
ACCOUNT_NOT_FOUND
-
EXPIRED_TOKEN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<AuthenticationHandler.FAILURE_REASON_CODES>
-