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
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Provides theSecurityContext
instances which were associated with the destroyed session.jakarta.servlet.http.HttpSession
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods 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:SessionDestroyedEvent
Provides theSecurityContext
instances which were associated with the destroyed session. Usually there will be only one security context per session.- Specified by:
getSecurityContexts
in classSessionDestroyedEvent
- Returns:
- the
SecurityContext
instances which were stored in the current session (an empty list if there are none).
-
getId
- Specified by:
getId
in classSessionDestroyedEvent
- Returns:
- the identifier associated with the destroyed session.
-