bwLehrpool Masterserver
Manages authentication and sharing of virtual machines between participating institutions
Static Public Member Functions | Static Package Functions | Static Private Attributes | List of all members
org.openslx.imagemaster.session.SessionManager Class Reference

Class for managing active user sessions. More...

+ Collaboration diagram for org.openslx.imagemaster.session.SessionManager:

Static Public Member Functions

static ClientSessionData addSession (Session session)
 
static ClientSessionData addSession (Session session, String accessToken)
 
static void addAuthError (TAuthorizationException ex, String accessToken)
 
static Session getSessionFromToken (String token)
 Get from userToken, known to satellite servers. More...
 
static Session getSessionFromSessionId (String sessionId)
 Get from sessionId, only known by client/user and us. More...
 
static Session getSessionFromSessionIdOrToken (String sessionId)
 
static void invalidate (String sessionId)
 
static ClientSessionData getSessionFromAccessCode (String accessCode) throws TNotFoundException, TAuthorizationException
 Get the according session data (satToken, masterToken) for given access code, which was supplied by the client earlier. More...
 

Static Package Functions

 [static initializer]
 

Static Private Attributes

static Logger log = LogManager.getLogger( SessionManager.class )
 
static final Map< String, Sessionsessions = new LinkedHashMap<>()
 
static final Map< String,
AccessCode
accessCodes = new ConcurrentHashMap<>()
 

Detailed Description

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.

Member Function Documentation

org.openslx.imagemaster.session.SessionManager.[static initializer] ( )
staticpackage
static void org.openslx.imagemaster.session.SessionManager.addAuthError ( TAuthorizationException  ex,
String  accessToken 
)
static

Definition at line 66 of file SessionManager.java.

+ Here is the caller graph for this function:

static ClientSessionData org.openslx.imagemaster.session.SessionManager.addSession ( Session  session)
static

Definition at line 38 of file SessionManager.java.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static ClientSessionData org.openslx.imagemaster.session.SessionManager.addSession ( Session  session,
String  accessToken 
)
static

Definition at line 57 of file SessionManager.java.

+ Here is the call graph for this function:

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.

+ Here is the caller graph for this function:

static Session org.openslx.imagemaster.session.SessionManager.getSessionFromSessionId ( String  sessionId)
static

Get from sessionId, only known by client/user and us.

Definition at line 120 of file SessionManager.java.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Session org.openslx.imagemaster.session.SessionManager.getSessionFromSessionIdOrToken ( String  sessionId)
static

Definition at line 137 of file SessionManager.java.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Session org.openslx.imagemaster.session.SessionManager.getSessionFromToken ( String  token)
static

Get from userToken, known to satellite servers.

Definition at line 101 of file SessionManager.java.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void org.openslx.imagemaster.session.SessionManager.invalidate ( String  sessionId)
static

Definition at line 149 of file SessionManager.java.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Member Data Documentation

final Map<String, AccessCode> org.openslx.imagemaster.session.SessionManager.accessCodes = new ConcurrentHashMap<>()
staticprivate

Definition at line 36 of file SessionManager.java.

Logger org.openslx.imagemaster.session.SessionManager.log = LogManager.getLogger( SessionManager.class )
staticprivate

Definition at line 30 of file SessionManager.java.

final Map<String, Session> org.openslx.imagemaster.session.SessionManager.sessions = new LinkedHashMap<>()
staticprivate

Definition at line 33 of file SessionManager.java.


The documentation for this class was generated from the following file: