Enum Class AuthenticationFailureReason
java.lang.Object
java.lang.Enum<AuthenticationFailureReason>
io.micronaut.security.authentication.AuthenticationFailureReason
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticationFailureReason>
,Constable
Enums describes the different authentication failures.
- Since:
- 1.0
- Author:
- Sergio del Amo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFailure when the cause is the user account expired.Failure when the cause is the user account was locked.Failure when the cause is the credentials don't match.An custom failure.Failure when the cause is the user's password expired.An unknown failure.Failure when the cause is the user account is disabled.Failure when the cause is the user is not found. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthenticationFailureReason
Returns the enum constant of this class with the specified name.static AuthenticationFailureReason[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USER_NOT_FOUND
Failure when the cause is the user is not found. -
CREDENTIALS_DO_NOT_MATCH
Failure when the cause is the credentials don't match. -
USER_DISABLED
Failure when the cause is the user account is disabled. -
ACCOUNT_EXPIRED
Failure when the cause is the user account expired. -
ACCOUNT_LOCKED
Failure when the cause is the user account was locked. -
PASSWORD_EXPIRED
Failure when the cause is the user's password expired. -
UNKNOWN
An unknown failure. -
CUSTOM
An custom failure.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-