public class BasicTokenSessionMap extends Object implements TokenSessionMap
| Constructor and Description |
|---|
BasicTokenSessionMap(Environment environment)
Create a new BasicTokenGuacamoleSessionMap configured using the given
environment.
|
| Modifier and Type | Method and Description |
|---|---|
GuacamoleSession |
get(String authToken)
Get the GuacamoleSession for a logged in user.
|
void |
put(String authToken,
GuacamoleSession session)
Registers that a user has just logged in with the specified authToken and
GuacamoleSession.
|
GuacamoleSession |
remove(String authToken)
Removes the GuacamoleSession associated with the given auth token.
|
void |
shutdown()
Shuts down this session map, disallowing future sessions and reclaiming
any resources.
|
public BasicTokenSessionMap(Environment environment)
environment - The environment to use when configuring the token session map.public GuacamoleSession get(String authToken)
TokenSessionMapget in interface TokenSessionMapauthToken - The authentication token for the logged in user.public void put(String authToken, GuacamoleSession session)
TokenSessionMapput in interface TokenSessionMapauthToken - The authentication token for the logged in user.session - The GuacamoleSession for the logged in user.public GuacamoleSession remove(String authToken)
TokenSessionMapremove in interface TokenSessionMapauthToken - The token to remove.public void shutdown()
TokenSessionMapshutdown in interface TokenSessionMapCopyright © 2016. All rights reserved.