Package org.ametys.core.authentication
Enum 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>
- Enclosing class:
- AuthenticateAction
protected static enum AuthenticateAction.TOKEN_MODE extends Enum<AuthenticateAction.TOKEN_MODE>
The token mode of this authentication action
-
-
Enum Constant Summary
Enum Constants Enum Constant Description 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 doneDEFAULT
In this default mode, the token will be taken in account, but if no token is found, the authentication process will continueTOKEN_ONLY
In this mode, only the token will be taken in account.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticateAction.TOKEN_MODE
valueOf(String name)
Returns the enum constant of this type with the specified name.static AuthenticateAction.TOKEN_MODE[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TOKEN_ONLY
public static final AuthenticateAction.TOKEN_MODE 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
public static final AuthenticateAction.TOKEN_MODE 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
public static final AuthenticateAction.TOKEN_MODE DEFAULT
In this default mode, the token will be taken in account, but if no token is found, the authentication process will continue
-
-
Method Detail
-
values
public static AuthenticateAction.TOKEN_MODE[] 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 (AuthenticateAction.TOKEN_MODE c : AuthenticateAction.TOKEN_MODE.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AuthenticateAction.TOKEN_MODE valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-