Package org.ametys.core.authentication
Enum Class AuthenticateAction.TOKEN_MODE
java.lang.Object
java.lang.Enum<AuthenticateAction.TOKEN_MODE>
org.ametys.core.authentication.AuthenticateAction.TOKEN_MODE
- All Implemented Interfaces:
Serializable
,Comparable<AuthenticateAction.TOKEN_MODE>
,java.lang.constant.Constable
- Enclosing class:
- AuthenticateAction
The token mode of this authentication action
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIn this mode, the token will be taken in account but if no token is found, user will be considered as anonymous and authentication will be considered doneIn this default mode, the token will be taken in account, but if no token is found, the authentication process will continueIn this mode, only the token will be taken in account. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static AuthenticateAction.TOKEN_MODE[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOKEN_ONLY
In this mode, only the token will be taken in account. If no token is found, authentication will not be considered done -
ALLOW_ANONYMOUS
In this mode, the token will be taken in account but if no token is found, user will be considered as anonymous and authentication will be considered done -
DEFAULT
In this default mode, the token will be taken in account, but if no token is found, the authentication process will continue
-
-
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
-