Package net.shibboleth.idp.session.impl
Class DestroySessions
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class DestroySessions extends AbstractProfileAction
Profile action that destroys anyIdPSessions found in aLogoutContext.If a
SessionContextis found, the corresponding session is also unbound from the client and theSessionContextis removed.- Since:
- 4.0.0
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.IO_ERROR- Postcondition:
- The sessions are removed from the session manager., The sessions are removed from the
LogoutContext., TheSessionContextis removed if it matched one of the sessions destroyed.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private LogoutContextlogoutContextLogoutContext to access.private Function<ProfileRequestContext,LogoutContext>logoutContextLookupStrategyLookup function for LogoutContext.private SessionContextsessionContextSessionContext to access.private Function<ProfileRequestContext,SessionContext>sessionContextLookupStrategyLookup function for SessionContext.private SessionManagersessionManagerSession resolver.
-
Constructor Summary
Constructors Constructor Description DestroySessions()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetLogoutContextLookupStrategy(Function<ProfileRequestContext,LogoutContext> strategy)Set the lookup strategy for the LogoutContext to access.voidsetSessionContextLookupStrategy(Function<ProfileRequestContext,SessionContext> strategy)Set the lookup strategy for the SessionContext to access.voidsetSessionManager(SessionManager manager)Set theSessionManagerto use.-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
sessionManager
@NonnullAfterInit private SessionManager sessionManager
Session resolver.
-
sessionContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,SessionContext> sessionContextLookupStrategy
Lookup function for SessionContext.
-
logoutContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,LogoutContext> logoutContextLookupStrategy
Lookup function for LogoutContext.
-
sessionContext
@Nullable private SessionContext sessionContext
SessionContext to access.
-
logoutContext
@Nullable private LogoutContext logoutContext
LogoutContext to access.
-
-
Method Detail
-
setSessionManager
public void setSessionManager(@Nonnull SessionManager manager)Set theSessionManagerto use.- Parameters:
manager- session manager to use
-
setSessionContextLookupStrategy
public void setSessionContextLookupStrategy(@Nonnull Function<ProfileRequestContext,SessionContext> strategy)Set the lookup strategy for the SessionContext to access.- Parameters:
strategy- lookup strategy
-
setLogoutContextLookupStrategy
public void setLogoutContextLookupStrategy(@Nonnull Function<ProfileRequestContext,LogoutContext> strategy)Set the lookup strategy for the LogoutContext to access.- Parameters:
strategy- lookup strategy
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-