|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aselect.system.storagemanager.StorageManager
org.aselect.authspserver.session.AuthSPSessionManager
public class AuthSPSessionManager
A session manager for all AuthSP's.
Description:
A singleton class that uses a StorageManager from the
org.aselect.system package as backend.
Concurrency issues:
-
| Field Summary | |
|---|---|
static java.lang.String |
MODULE
The module name. |
| Method Summary | |
|---|---|
void |
createSession(java.lang.String sRid,
java.util.Hashtable htContext)
Create a session with the supplied RID as ID. |
static AuthSPSessionManager |
getHandle()
Get a static handle to the AuthSPSessionManager instance. |
java.util.Hashtable |
getSessionContext(java.lang.String sRid)
Get the session context of a session. |
void |
init()
Initializes the AuthSPSessionManager. |
void |
updateSession(java.lang.String sRid,
java.util.Hashtable htExtendedContext)
Update a session context with the given information. |
| Methods inherited from class org.aselect.system.storagemanager.StorageManager |
|---|
containsKey, destroy, get, getAll, getCount, getExpirationTime, getTimestamp, init, put, remove, removeAll, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MODULE
| Method Detail |
|---|
public static AuthSPSessionManager getHandle()
AuthSPSessionManager instance.
AuthSPSessionManager exists.
AuthSPSessionManager.
public void init()
throws ASelectException
AuthSPSessionManager.
ASelectException - if initialization fails
public void createSession(java.lang.String sRid,
java.util.Hashtable htContext)
throws ASelectException
htContext variable contains the information that should
be stored in the session.
htSessionContext != null
sRid - The RID that is used as session IDhtContext - The session context parameters in a Hashtable.
ASelectException - if the session could not be created or already exists
public void updateSession(java.lang.String sRid,
java.util.Hashtable htExtendedContext)
throws ASelectException
sRid != nullhtExtendedContext != null
sRid - The ID of the sessionhtExtendedContext - Hashtable of the parameters in the
session context that should be overwritten
ASelectException - if the session could not be updated
public java.util.Hashtable getSessionContext(java.lang.String sRid)
throws ASelectException
sSessionId != null
sRid - The ID of the session.
ASelectException - if the session oculd not be resolved.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||