public class InvalidateSessionOnIdentitySwitch extends AbstractAuthenticationAction
SubjectCanonicalizationContext).
On a mismatch, it destroys a pre-existing session and clears AuthenticationContext
and SessionContext state such that no trace of its impact on the contexts remains.
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 String |
newPrincipalName
A newly established principal name to check.
|
private SessionContext |
sessionCtx
SessionContext to operate on.
|
private SessionManager |
sessionManager
SessionManager.
|
| Constructor and Description |
|---|
InvalidateSessionOnIdentitySwitch() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
protected void |
doInitialize() |
protected boolean |
doPreExecute(org.opensaml.profile.context.ProfileRequestContext profileRequestContext,
AuthenticationContext authenticationContext) |
void |
setSessionManager(SessionManager manager)
Set the
SessionManager to use. |
doExecute, doPreExecute, setLookupStrategydoExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getResult, setMessageSource, setProfileContextLookupStrategygetActivationCondition, setActivationConditiondoPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, initialize, isDestroyed, isInitialized@NonnullAfterInit private SessionManager sessionManager
@Nullable private SessionContext sessionCtx
public 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, @Nonnull AuthenticationContext authenticationContext)
doPreExecute in class AbstractAuthenticationActionprotected void doExecute(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext, @Nonnull AuthenticationContext authenticationContext)
doExecute in class AbstractAuthenticationActionCopyright © 1999–2014. All rights reserved.