Class ParameterHelper
- java.lang.Object
-
- de.xima.fc.security.pac4j.passthrough.ParameterHelper
-
public final class ParameterHelper extends Object
Access to passthrough definitions and the session payload captured on an initial form request.- Since:
- 8.6.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringPASSTHROUGH_PARAMETERS_KEYSession attribute containing captured parameters for the pending form login.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidclearParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext)Consumes the captured payload after a passthrough redirect has been constructed successfully.static List<ParameterDefinition>readDefinitions(org.pac4j.core.client.Client client)Reads the definitions attached to a supported indirect client's redirect builder.static ParameterStorereadParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext)Reads the captured parameters without consuming them.static voidsaveParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext, ParameterStore passthroughParameters)Replaces the captured parameters for the pending form login.
-
-
-
Field Detail
-
PASSTHROUGH_PARAMETERS_KEY
public static final String PASSTHROUGH_PARAMETERS_KEY
Session attribute containing captured parameters for the pending form login.- See Also:
- Constant Field Values
-
-
Method Detail
-
readDefinitions
public static List<ParameterDefinition> readDefinitions(org.pac4j.core.client.Client client)
Reads the definitions attached to a supported indirect client's redirect builder.- Parameters:
client- the client to inspect- Returns:
- its passthrough definitions, or an empty list for other clients
-
saveParameters
public static void saveParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext, ParameterStore passthroughParameters)Replaces the captured parameters for the pending form login.- Parameters:
sessionStore- the session store, ornullwhen unavailablewebContext- the current web context, ornullwhen unavailablepassthroughParameters- the replacement payload; an empty store clears previous values
-
readParameters
public static ParameterStore readParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext)
Reads the captured parameters without consuming them.- Parameters:
sessionStore- the session store, ornullwhen unavailablewebContext- the current web context, ornullwhen unavailable- Returns:
- the payload, or
nullwhen none is available
-
clearParameters
public static void clearParameters(org.pac4j.core.context.session.SessionStore sessionStore, org.pac4j.core.context.WebContext webContext)Consumes the captured payload after a passthrough redirect has been constructed successfully.- Parameters:
sessionStore- the session store, ornullwhen unavailablewebContext- the current web context, ornullwhen unavailable
-
-