Package net.shibboleth.idp.session.impl
Class DestroySessions
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
Profile action that destroys any
IdPSessions found in a LogoutContext.
If a SessionContext is found, the corresponding session is also unbound
from the client and the SessionContext is 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
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private LogoutContextLogoutContext to access.private Function<ProfileRequestContext,LogoutContext> Lookup function for LogoutContext.private SessionContextSessionContext to access.private Function<ProfileRequestContext,SessionContext> Lookup function for SessionContext.private SessionManagerSession resolver. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoExecute(ProfileRequestContext profileRequestContext) protected voidprotected booleandoPreExecute(ProfileRequestContext profileRequestContext) voidSet the lookup strategy for the LogoutContext to access.voidSet 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, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
sessionManager
Session resolver. -
sessionContextLookupStrategy
Lookup function for SessionContext. -
logoutContextLookupStrategy
Lookup function for LogoutContext. -
sessionContext
SessionContext to access. -
logoutContext
LogoutContext to access.
-
-
Constructor Details
-
DestroySessions
public DestroySessions()Constructor.
-
-
Method Details
-
setSessionManager
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
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-