Class SessionDestroyedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.AbstractSessionEvent
org.springframework.security.core.session.SessionDestroyedEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
HttpSessionDestroyedEvent
Generic "session termination" event which indicates that a session (potentially
represented by a security context) has ended.
- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
getId()
abstract List<SecurityContext>
Provides theSecurityContext
instances which were associated with the destroyed session.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
SessionDestroyedEvent
-
-
Method Details
-
getSecurityContexts
Provides theSecurityContext
instances which were associated with the destroyed session. Usually there will be only one security context per session.- Returns:
- the
SecurityContext
instances which were stored in the current session (an empty list if there are none).
-
getId
- Returns:
- the identifier associated with the destroyed session.
-