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
ConstructorDescriptionHttpSessionIdChangedEvent
(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
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
HttpSessionIdChangedEvent
-
-
Method Details
-
getOldSessionId
Description copied from class:SessionIdChangedEvent
Returns the old session ID.- Specified by:
getOldSessionId
in classSessionIdChangedEvent
- Returns:
- the identifier that was previously associated with the session.
-
getNewSessionId
Description copied from class:SessionIdChangedEvent
Returns the new session ID.- Specified by:
getNewSessionId
in classSessionIdChangedEvent
- Returns:
- the new identifier that is associated with the session.
-