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:
java.io.Serializable
public class HttpSessionIdChangedEvent extends SessionIdChangedEvent
Published by theHttpSessionEventPublisher
when anHttpSession
ID is changed.- Since:
- 5.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpSessionIdChangedEvent(javax.servlet.http.HttpSession session, java.lang.String oldSessionId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getNewSessionId()
Returns the new session ID.java.lang.String
getOldSessionId()
Returns the old session ID.
-
-
-
Method Detail
-
getOldSessionId
public java.lang.String 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
public java.lang.String 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.
-
-