Class HttpSessionDestroyedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.AbstractSessionEvent
org.springframework.security.core.session.SessionDestroyedEvent
org.springframework.security.web.session.HttpSessionDestroyedEvent
- All Implemented Interfaces:
- Serializable
Published by the 
HttpSessionEventPublisher when a HttpSession is removed from
 the container- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetId()Provides theSecurityContextinstances which were associated with the destroyed session.jakarta.servlet.http.HttpSessionMethods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
HttpSessionDestroyedEventpublic HttpSessionDestroyedEvent(jakarta.servlet.http.HttpSession session) 
 
- 
- 
Method Details- 
getSessionpublic jakarta.servlet.http.HttpSession getSession()
- 
getSecurityContextsDescription copied from class:SessionDestroyedEventProvides theSecurityContextinstances which were associated with the destroyed session. Usually there will be only one security context per session.- Specified by:
- getSecurityContextsin class- SessionDestroyedEvent
- Returns:
- the SecurityContextinstances which were stored in the current session (an empty list if there are none).
 
- 
getId- Specified by:
- getIdin class- SessionDestroyedEvent
- Returns:
- the identifier associated with the destroyed session.
 
 
-