Enum Class JWTAuthenticationHandler.JWTAuthState
java.lang.Object
java.lang.Enum<JWTAuthenticationHandler.JWTAuthState>
com.jalios.jcms.authentication.handlers.JWTAuthenticationHandler.JWTAuthState
- All Implemented Interfaces:
Serializable,Comparable<JWTAuthenticationHandler.JWTAuthState>,Constable
- Enclosing class:
JWTAuthenticationHandler
public static enum JWTAuthenticationHandler.JWTAuthState
extends Enum<JWTAuthenticationHandler.JWTAuthState>
Possible JWT authentication state after handler invocation.
AuthenticationContext may cumulate several states.
- Since:
- jcms-10.0.8 / JCMS-7956
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA JWT was received but is invalid.A JWT was received but it does not authorize the HTTP method that was used.A JWT was received but it cannot be used from the IP it was sent from.A JWT was received but its Member was invalid.A JWT was received but it was used for an unauthorized URL.A JWT was received but it could not be found in database.A JWT was received, was validated and was used to set the loggedMember.Member is already logged in current context, JWT authentication auth was skipped for current request.JWT Authentication is disabled and was skipped for current request.No JWT token was received, JWT authentication was skipped for current request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSet(AuthenticationContext ctxt) Check if this state was set for the specified AuthenticationContextReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SKIPPED_DISABLED
JWT Authentication is disabled and was skipped for current request. -
SKIPPED_ALREADY_LOGGED
Member is already logged in current context, JWT authentication auth was skipped for current request. -
SKIPPED_NO_JWT
No JWT token was received, JWT authentication was skipped for current request. -
LOGGED_WITH_JWT
A JWT was received, was validated and was used to set the loggedMember. -
FAILED_INVALID_JWT
A JWT was received but is invalid. -
FAILED_INVALID_JWT_INVALID_MEMBER
A JWT was received but its Member was invalid. -
FAILED_INVALID_JWT_INVALID_URL
A JWT was received but it was used for an unauthorized URL. -
FAILED_INVALID_JWT_INVALID_HTTP_METHOD
A JWT was received but it does not authorize the HTTP method that was used. -
FAILED_INVALID_JWT_INVALID_IP
A JWT was received but it cannot be used from the IP it was sent from. -
FAILED_JWT_NOT_IN_DB
A JWT was received but it could not be found in database.- Since:
- 10.0.8 / JCMS-4770
-
-
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
-
isSet
Check if this state was set for the specified AuthenticationContext- Parameters:
ctxt- the AuthenticationContext in which to check state- Returns:
- true if state was encountered, false otherwise
-