Enum SilentParamsAuthenticationHandler.SilentParamsAuthState
- java.lang.Object
-
- java.lang.Enum<SilentParamsAuthenticationHandler.SilentParamsAuthState>
-
- com.jalios.jcms.authentication.handlers.SilentParamsAuthenticationHandler.SilentParamsAuthState
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SilentParamsAuthenticationHandler.SilentParamsAuthState>
- Enclosing class:
- SilentParamsAuthenticationHandler
public static enum SilentParamsAuthenticationHandler.SilentParamsAuthState extends java.lang.Enum<SilentParamsAuthenticationHandler.SilentParamsAuthState>
Possible SilentParams authentication state after handler invocation. AuthenticationContext may cumulate several states.- Since:
- jcms-10.0.5 / JCMS-7956
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED_INVALID_SILENT_PARAMS
Silent params were received but were invalid and could not be used to set the loggedMember.LOGGED_WITH_SILENTPARAMS
Silent params were received and were valided and used to set the loggedMember.SKIPPED_ALREADY_LOGGED
Member is already logged in current context, SilentParams auth was skipped for current request.SKIPPED_DISABLED
SilentParams is disabled and was skipped for current request.SKIPPED_NO_SILENT_PARAMS
SilentParams was skipped as no params could be found.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSet(AuthenticationContext ctxt)
Check if this state was set for the specified AuthenticationContextstatic SilentParamsAuthenticationHandler.SilentParamsAuthState
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SilentParamsAuthenticationHandler.SilentParamsAuthState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SKIPPED_DISABLED
public static final SilentParamsAuthenticationHandler.SilentParamsAuthState SKIPPED_DISABLED
SilentParams is disabled and was skipped for current request.
-
SKIPPED_NO_SILENT_PARAMS
public static final SilentParamsAuthenticationHandler.SilentParamsAuthState SKIPPED_NO_SILENT_PARAMS
SilentParams was skipped as no params could be found.
-
SKIPPED_ALREADY_LOGGED
public static final SilentParamsAuthenticationHandler.SilentParamsAuthState SKIPPED_ALREADY_LOGGED
Member is already logged in current context, SilentParams auth was skipped for current request.
-
FAILED_INVALID_SILENT_PARAMS
public static final SilentParamsAuthenticationHandler.SilentParamsAuthState FAILED_INVALID_SILENT_PARAMS
Silent params were received but were invalid and could not be used to set the loggedMember.
-
LOGGED_WITH_SILENTPARAMS
public static final SilentParamsAuthenticationHandler.SilentParamsAuthState LOGGED_WITH_SILENTPARAMS
Silent params were received and were valided and used to set the loggedMember.
-
-
Method Detail
-
values
public static SilentParamsAuthenticationHandler.SilentParamsAuthState[] 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 (SilentParamsAuthenticationHandler.SilentParamsAuthState c : SilentParamsAuthenticationHandler.SilentParamsAuthState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SilentParamsAuthenticationHandler.SilentParamsAuthState valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
isSet
public boolean isSet(AuthenticationContext ctxt)
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
-
-