public class SessionInformation
extends java.lang.Object
implements java.io.Serializable
This is primarily used for concurrent session support.
Sessions have three states: active, expired, and destroyed. A session can that is invalidated by
session.invalidate()
or via Servlet Container management is considered "destroyed". An "expired"
session, on the other hand, is a session that Spring Security wants to end because it was selected for removal for
some reason (generally as it was the least recently used session and the maximum sessions for the user were
reached). An "expired" session is removed as soon as possible by a Filter
.
Constructor and Description |
---|
SessionInformation(java.lang.Object principal,
java.lang.String sessionId,
java.util.Date lastRequest) |
Modifier and Type | Method and Description |
---|---|
void |
expireNow() |
java.util.Date |
getLastRequest() |
java.lang.Object |
getPrincipal() |
java.lang.String |
getSessionId() |
boolean |
isExpired() |
void |
refreshLastRequest()
Refreshes the internal lastRequest to the current date and time.
|
public SessionInformation(java.lang.Object principal, java.lang.String sessionId, java.util.Date lastRequest)
public void expireNow()
public java.util.Date getLastRequest()
public java.lang.Object getPrincipal()
public java.lang.String getSessionId()
public boolean isExpired()
public void refreshLastRequest()