org.acegisecurity.concurrent
Class SessionInformation
java.lang.Object
org.acegisecurity.concurrent.SessionInformation
- All Implemented Interfaces:
- java.io.Serializable
public class SessionInformation
- extends java.lang.Object
- implements java.io.Serializable
Represents a record of a session within the Acegi Security framework.
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 Acegi 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
.
- Version:
- $Id: SessionInformation.java 1999 2007-08-30 21:38:07Z luke_t $
- Author:
- Ben Alex
- See Also:
- Serialized Form
Constructor Summary |
SessionInformation(java.lang.Object principal,
java.lang.String sessionId,
java.util.Date lastRequest)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SessionInformation
public SessionInformation(java.lang.Object principal,
java.lang.String sessionId,
java.util.Date lastRequest)
expireNow
public void expireNow()
getLastRequest
public java.util.Date getLastRequest()
getPrincipal
public java.lang.Object getPrincipal()
getSessionId
public java.lang.String getSessionId()
isExpired
public boolean isExpired()
refreshLastRequest
public void refreshLastRequest()
- Refreshes the internal lastRequest to the current date and time.
Copyright © 2004-2012 Interface21, Inc. All Rights Reserved.