public class UpdateSessionWithSPSession
extends net.shibboleth.idp.profile.AbstractProfileAction
SPSession in an existing IdPSession for the client.
The SPSession to add is obtained using a strategy function injected into the action.
The existing session to modify is identified via a SessionContext attached to the
ProfileRequestContext.
An error interacting with the session layer will result in an EventIds.IO_ERROR event.
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_PROFILE_CTX, EventIds.IO_ERROR| Modifier and Type | Field and Description |
|---|---|
private org.slf4j.Logger |
log
Class logger.
|
private Function<ProfileRequestContext,SessionContext> |
sessionContextLookupStrategy
Lookup function for SessionContext.
|
private SessionContext |
sessionCtx
Existing or newly created SessionContext.
|
private SessionManager |
sessionManager
SessionManager.
|
private Function<ProfileRequestContext,SPSession> |
spSessionCreationStrategy
A function that returns the
SPSession to add. |
| Constructor and Description |
|---|
UpdateSessionWithSPSession()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
void |
setSessionContextLookupStrategy(Function<ProfileRequestContext,SessionContext> strategy)
Set the lookup strategy for the SessionContext to access.
|
void |
setSessionManager(SessionManager manager)
Set the
SessionManager to use. |
void |
setSPSessionCreationStrategy(Function<ProfileRequestContext,SPSession> strategy)
Set the creation function to use to obtain the
SPSession to add. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitializedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinitialize, isInitialized@Nonnull private final org.slf4j.Logger log
@Nonnull private Function<ProfileRequestContext,SPSession> spSessionCreationStrategy
SPSession to add.@NonnullAfterInit private SessionManager sessionManager
@Nonnull private Function<ProfileRequestContext,SessionContext> sessionContextLookupStrategy
@Nullable private SessionContext sessionCtx
public void setSPSessionCreationStrategy(@Nonnull Function<ProfileRequestContext,SPSession> strategy)
SPSession to add.strategy - creation function to usepublic void setSessionManager(@Nonnull SessionManager manager)
SessionManager to use.manager - session manager to usepublic void setSessionContextLookupStrategy(@Nonnull Function<ProfileRequestContext,SessionContext> strategy)
strategy - lookup strategyprotected void doInitialize()
throws ComponentInitializationException
doInitialize in class AbstractInitializableComponentComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractConditionalProfileActionprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute in class AbstractProfileActionCopyright © 1999–2017 Shibboleth Consortium. All rights reserved.