public class SessionManagerImpl extends Object implements SessionManager<Session>
コンストラクタと説明 |
---|
SessionManagerImpl(StorageService<String,SessionManagerEntry> storageService,
long lifetime)
Constructor.
|
SessionManagerImpl(StorageService<String,SessionManagerEntry> storageService,
String storageParition,
long lifetime)
Constructor.
|
修飾子とタイプ | メソッドと説明 |
---|---|
Session |
createSession()
Creates an empty Shibboleth session.
|
Session |
createSession(String principal)
Creates a Shibboleth session.
|
void |
destroySession(String sessionID)
Destroys the session.
|
Session |
getSession(String sessionID)
Gets the user's session based on a session index.
|
boolean |
indexSession(Session session,
String index)
Indexes a session by the given string.
|
void |
removeSessionIndex(String index)
Removes the given index from its associated session.
|
public SessionManagerImpl(StorageService<String,SessionManagerEntry> storageService, long lifetime)
storageService
- service used to store sessionslifetime
- lifetime, in milliseconds, of sessionspublic SessionManagerImpl(StorageService<String,SessionManagerEntry> storageService, String storageParition, long lifetime)
storageService
- service used to store sessionstorageParition
- partition in which sessions are storedlifetime
- lifetime, in milliseconds, of sessionspublic Session createSession()
createSession
インタフェース内 SessionManager<Session>
public Session createSession(String principal)
createSession
インタフェース内 SessionManager<Session>
principal
- the principal name of the userpublic void destroySession(String sessionID)
destroySession
インタフェース内 SessionManager<Session>
sessionID
- the index of the session.public Session getSession(String sessionID)
getSession
インタフェース内 SessionManager<Session>
sessionID
- the index of the sessionpublic boolean indexSession(Session session, String index)
indexSession
インタフェース内 SessionManager<Session>
session
- session to indexindex
- additional indexpublic void removeSessionIndex(String index)
removeSessionIndex
インタフェース内 SessionManager<Session>
index
- index to be removed.Copyright © 2012. All Rights Reserved.