Class for managing active user sessions.
More...
|
static Logger | log = LogManager.getLogger( SessionManager.class ) |
|
static final Map< String, Session > | sessions = new LinkedHashMap<>() |
|
static final Map< String,
AccessCode > | accessCodes = new ConcurrentHashMap<>() |
|
Class for managing active user sessions.
This class and all its function are (supposed to be) thread-safe.
Definition at line 28 of file SessionManager.java.
org.openslx.imagemaster.session.SessionManager.[static initializer] |
( |
| ) |
|
|
staticpackage |
static void org.openslx.imagemaster.session.SessionManager.addAuthError |
( |
TAuthorizationException |
ex, |
|
|
String |
accessToken |
|
) |
| |
|
static |
static ClientSessionData org.openslx.imagemaster.session.SessionManager.addSession |
( |
Session |
session | ) |
|
|
static |
static ClientSessionData org.openslx.imagemaster.session.SessionManager.addSession |
( |
Session |
session, |
|
|
String |
accessToken |
|
) |
| |
|
static |
static ClientSessionData org.openslx.imagemaster.session.SessionManager.getSessionFromAccessCode |
( |
String |
accessCode | ) |
throws TNotFoundException, TAuthorizationException |
|
static |
Get the according session data (satToken, masterToken) for given access code, which was supplied by the client earlier.
This can only be done once; retrieving the session will remove the entry from the lookup table.
Definition at line 168 of file SessionManager.java.
static Session org.openslx.imagemaster.session.SessionManager.getSessionFromSessionId |
( |
String |
sessionId | ) |
|
|
static |
static Session org.openslx.imagemaster.session.SessionManager.getSessionFromSessionIdOrToken |
( |
String |
sessionId | ) |
|
|
static |
static Session org.openslx.imagemaster.session.SessionManager.getSessionFromToken |
( |
String |
token | ) |
|
|
static |
static void org.openslx.imagemaster.session.SessionManager.invalidate |
( |
String |
sessionId | ) |
|
|
static |
final Map<String, AccessCode> org.openslx.imagemaster.session.SessionManager.accessCodes = new ConcurrentHashMap<>() |
|
staticprivate |
Logger org.openslx.imagemaster.session.SessionManager.log = LogManager.getLogger( SessionManager.class ) |
|
staticprivate |
final Map<String, Session> org.openslx.imagemaster.session.SessionManager.sessions = new LinkedHashMap<>() |
|
staticprivate |
The documentation for this class was generated from the following file: