Enum Class DelegationAuthenticationHandler.DelegationAuthState
java.lang.Object
java.lang.Enum<DelegationAuthenticationHandler.DelegationAuthState>
com.jalios.jcms.authentication.handlers.DelegationAuthenticationHandler.DelegationAuthState
- All Implemented Interfaces:
Serializable,Comparable<DelegationAuthenticationHandler.DelegationAuthState>,Constable
- Enclosing class:
DelegationAuthenticationHandler
public static enum DelegationAuthenticationHandler.DelegationAuthState
extends Enum<DelegationAuthenticationHandler.DelegationAuthState>
Possible Delegation Auth state after handler invocation.
AuthenticationContext may cumulate several states.
- Since:
- jcms-10.0.5 / 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 ConstantDescriptionDelegation was used to logout to a previously authenticated user in the session.Delegation was used to login to a new user in the session.Delegation failed because CSRF token was missing or was invalid.Delegation failed because specified credential are invalid.Delegation failed because specified currently logged member is not authorized to delegate as specified target member.Delegation was used to set the loggedMember.Delegation is disabled and was skipped for current request.Delegation was skipped as no parameter was specified.Delegation was skipped as Member is not logged in current context, delegation require an currently logged member. -
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
Delegation is disabled and was skipped for current request. -
SKIPPED_NO_SULOGIN_PARAM
Delegation was skipped as no parameter was specified. -
SKIPPED_NOT_LOGGED
Delegation was skipped as Member is not logged in current context, delegation require an currently logged member. -
FAILED_INVALID_SULOGIN_PARAM
public static final DelegationAuthenticationHandler.DelegationAuthState FAILED_INVALID_SULOGIN_PARAMDelegation failed because specified credential are invalid. -
FAILED_UNAUTHORIZED
Delegation failed because specified currently logged member is not authorized to delegate as specified target member. -
FAILED_CSRF
Delegation failed because CSRF token was missing or was invalid. -
LOGGED_WITH_DELEGATION
Delegation was used to set the loggedMember. -
DELEGATION_LOGIN
Delegation was used to login to a new user in the session. -
DELEGATION_LOGBACK
Delegation was used to logout to a previously authenticated user in the session.
-
-
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
-