org.springframework.security.core.session
Class SessionDestroyedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.SessionDestroyedEvent
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- HttpSessionDestroyedEvent
public abstract class SessionDestroyedEvent
- extends ApplicationEvent
Generic "session termination" event which indicates that a session (potentially
represented by a security context) has ended.
- Since:
- 3.0
- See Also:
- Serialized Form
SessionDestroyedEvent
public SessionDestroyedEvent(Object source)
getSecurityContext
public abstract SecurityContext getSecurityContext()
- Provides the SecurityContext under which the session was running.
- Returns:
- the SecurityContext associated with the session, or null if there is no context.
getId
public abstract String getId()
- Returns:
- the identifier associated with the destroyed session.