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 Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()Provides theSecurityContextinstances which were associated with the destroyed session.jakarta.servlet.http.HttpSessionMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HttpSessionDestroyedEvent
public HttpSessionDestroyedEvent(jakarta.servlet.http.HttpSession session)
-
-
Method Details
-
getSession
public jakarta.servlet.http.HttpSession getSession() -
getSecurityContexts
Description 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 classSessionDestroyedEvent- Returns:
- the
SecurityContextinstances which were stored in the current session (an empty list if there are none).
-
getId
- Specified by:
getIdin classSessionDestroyedEvent- Returns:
- the identifier associated with the destroyed session.
-