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:
java.io.Serializable
- Direct Known Subclasses:
HttpSessionDestroyedEvent
public abstract class SessionDestroyedEvent extends AbstractSessionEvent
Generic "session termination" event which indicates that a session (potentially represented by a security context) has ended.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SessionDestroyedEvent(java.lang.Object source)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.String
getId()
abstract java.util.List<SecurityContext>
getSecurityContexts()
Provides theSecurityContext
instances which were associated with the destroyed session.
-
-
-
Method Detail
-
getSecurityContexts
public abstract java.util.List<SecurityContext> 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
public abstract java.lang.String getId()
- Returns:
- the identifier associated with the destroyed session.
-
-