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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic AuthenticationFailureReasonReturns 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_FOUNDFailure when the cause is the user is not found.
- 
CREDENTIALS_DO_NOT_MATCHFailure when the cause is the credentials don't match.
- 
USER_DISABLEDFailure when the cause is the user account is disabled.
- 
ACCOUNT_EXPIREDFailure when the cause is the user account expired.
- 
ACCOUNT_LOCKEDFailure when the cause is the user account was locked.
- 
PASSWORD_EXPIREDFailure when the cause is the user's password expired.
- 
UNKNOWNAn unknown failure.
- 
CUSTOMAn custom failure.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-