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)
TokenSessionMap
get
in interface TokenSessionMap
authToken
- The authentication token for the logged in user.public void put(String authToken, GuacamoleSession session)
TokenSessionMap
put
in interface TokenSessionMap
authToken
- The authentication token for the logged in user.session
- The GuacamoleSession for the logged in user.public GuacamoleSession remove(String authToken)
TokenSessionMap
remove
in interface TokenSessionMap
authToken
- The token to remove.public void shutdown()
TokenSessionMap
shutdown
in interface TokenSessionMap
Copyright © 2016. All rights reserved.