Class SessionIdChangedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.AbstractSessionEvent
org.springframework.security.core.session.SessionIdChangedEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HttpSessionIdChangedEvent

public abstract class SessionIdChangedEvent extends AbstractSessionEvent
Generic "session ID changed" event which indicates that a session identifier (potentially represented by a security context) has changed.
Since:
5.4
See Also:
  • Constructor Details

    • SessionIdChangedEvent

      public SessionIdChangedEvent(Object source)
  • Method Details

    • getOldSessionId

      public abstract String getOldSessionId()
      Returns the old session ID.
      Returns:
      the identifier that was previously associated with the session.
    • getNewSessionId

      public abstract String getNewSessionId()
      Returns the new session ID.
      Returns:
      the new identifier that is associated with the session.