Class HttpSessionIdChangedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.security.core.session.AbstractSessionEvent
org.springframework.security.core.session.SessionIdChangedEvent
org.springframework.security.web.session.HttpSessionIdChangedEvent
- All Implemented Interfaces:
Serializable
Published by the
HttpSessionEventPublisher when an HttpSession ID is
changed.- Since:
- 5.4
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionHttpSessionIdChangedEvent(jakarta.servlet.http.HttpSession session, String oldSessionId) -
Method Summary
Modifier and TypeMethodDescriptionReturns the new session ID.Returns the old session ID.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HttpSessionIdChangedEvent
-
-
Method Details
-
getOldSessionId
Description copied from class:SessionIdChangedEventReturns the old session ID.- Specified by:
getOldSessionIdin classSessionIdChangedEvent- Returns:
- the identifier that was previously associated with the session.
-
getNewSessionId
Description copied from class:SessionIdChangedEventReturns the new session ID.- Specified by:
getNewSessionIdin classSessionIdChangedEvent- Returns:
- the new identifier that is associated with the session.
-