org.springframework.security.core.session.SessionRegistry |
Known Indirect Subclasses |
Maintains a registry of SessionInformation
instances.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Obtains all the known principals in the
SessionRegistry . | |||||||||||
Obtains all the known sessions for the specified principal.
| |||||||||||
Obtains the session information for the specified
sessionId . | |||||||||||
Updates the given
sessionId so its last request time is equal to the present date and time. | |||||||||||
Registers a new session for the specified principal.
| |||||||||||
Deletes all the session information being maintained for the specified
sessionId . |
Obtains all the known principals in the SessionRegistry
.
getAllSessions(Object, boolean)
.
Obtains all the known sessions for the specified principal. Sessions that have been destroyed are not returned. Sessions that have expired may be returned, depending on the passed argument.
principal | to locate sessions for (should never be null ) |
---|---|
includeExpiredSessions | if true , the returned sessions will also include those that have
expired for the principal |
Obtains the session information for the specified sessionId
. Even expired sessions are
returned (although destroyed sessions are never returned).
sessionId | to lookup (should never be null ) |
---|
null
if not found
Updates the given sessionId
so its last request time is equal to the present date and time.
Silently returns if the given sessionId
cannot be found or the session is marked to expire.
sessionId | for which to update the date and time of the last request (should never be null )
|
---|
Registers a new session for the specified principal. The newly registered session will not be marked for expiration.
sessionId | to associate with the principal (should never be null ) |
---|---|
principal | to associate with the session (should never be null )
|
Deletes all the session information being maintained for the specified sessionId
. If the
sessionId
is not found, the method gracefully returns.
sessionId | to delete information for (should never be null )
|
---|