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,
with a default that creates a standard implementation using information from the ProfileRequestContext.
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 Logger |
log
Class logger.
|
private SessionContext |
sessionCtx
Existing or newly created SessionContext.
|
private long |
sessionLifetime
Lifetime of sessions to create, if using the default strategy function.
|
private SessionManager |
sessionManager
SessionManager.
|
private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SPSession> |
spSessionCreationStrategy
A function that returns the
SPSession to add. |
| Constructor and Description |
|---|
UpdateSessionWithSPSession() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext) |
void |
setSessionLifetime(long lifetime)
Set the default session lifetime to apply if using the default creation
strategy for an
SPSession. |
void |
setSessionManager(SessionManager manager)
Set the
SessionManager to use. |
void |
setSPSessionCreationStrategy(com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SPSession> strategy)
Set the creation function to use to obtain the
SPSession to add. |
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitialized@Positive @Duration private long sessionLifetime
@Nonnull private com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SPSession> spSessionCreationStrategy
SPSession to add.@NonnullAfterInit private SessionManager sessionManager
@Nullable private SessionContext sessionCtx
public void setSessionLifetime(@Positive@Duration
long lifetime)
SPSession.
Only used if a strategy is not set.
lifetime - lifetime in millisecondspublic void setSPSessionCreationStrategy(@Nonnull com.google.common.base.Function<org.opensaml.profile.context.ProfileRequestContext,SPSession> strategy)
SPSession to add.strategy - creation function to usepublic void setSessionManager(@Nonnull SessionManager manager)
SessionManager to use.manager - session manager to useprotected void doInitialize()
throws net.shibboleth.utilities.java.support.component.ComponentInitializationException
doInitialize in class net.shibboleth.utilities.java.support.component.AbstractInitializableComponentnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionprotected boolean doPreExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doPreExecute in class org.opensaml.profile.action.AbstractConditionalProfileActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
doExecute in class org.opensaml.profile.action.AbstractProfileActionCopyright © 1999–2014. All rights reserved.