public class TokenInjectingUserContext extends DelegatingUserContext
| Constructor and Description |
|---|
TokenInjectingUserContext(UserContext userContext)
Wraps the given UserContext, overriding the connect() function of each
retrieved Connection and ConnectionGroup such that the additional
parameter tokens returned by getTokens() are included.
|
TokenInjectingUserContext(UserContext userContext,
Map<String,String> tokens)
Wraps the given UserContext, overriding the connect() function of each
retrieved Connection and ConnectionGroup such that the given additional
parameter tokens are included.
|
| Modifier and Type | Method and Description |
|---|---|
Directory<Connection> |
getConnectionDirectory()
Retrieves a Directory which can be used to view and manipulate
connections and their configurations, but only as allowed by the
permissions given to the user.
|
Directory<ConnectionGroup> |
getConnectionGroupDirectory()
Retrieves a Directory which can be used to view and manipulate
connection groups and their members, but only as allowed by the
permissions given to the user.
|
protected Map<String,String> |
getTokens(Connection connection)
Returns the tokens which should be added to an in-progress call to
connect() for the given Connection.
|
protected Map<String,String> |
getTokens(ConnectionGroup connectionGroup)
Returns the tokens which should be added to an in-progress call to
connect() for the given ConnectionGroup.
|
getActiveConnectionDirectory, getAuthenticationProvider, getConnectionAttributes, getConnectionGroupAttributes, getConnectionHistory, getDelegateUserContext, getPrivileged, getResource, getRootConnectionGroup, getSharingProfileAttributes, getSharingProfileDirectory, getUserAttributes, getUserDirectory, getUserGroupAttributes, getUserGroupDirectory, getUserHistory, invalidate, selfpublic TokenInjectingUserContext(UserContext userContext, Map<String,String> tokens)
userContext - The UserContext to wrap.tokens - The additional tokens to include with each call to connect().public TokenInjectingUserContext(UserContext userContext)
userContext - The UserContext to wrap.protected Map<String,String> getTokens(Connection connection)
connection - The Connection on which connect() has been called.protected Map<String,String> getTokens(ConnectionGroup connectionGroup)
connectionGroup - The ConnectionGroup on which connect() has been called.public Directory<ConnectionGroup> getConnectionGroupDirectory() throws org.apache.guacamole.GuacamoleException
UserContextgetConnectionGroupDirectory in interface UserContextgetConnectionGroupDirectory in class DelegatingUserContextorg.apache.guacamole.GuacamoleException - If an error occurs while creating the
Directory.public Directory<Connection> getConnectionDirectory() throws org.apache.guacamole.GuacamoleException
UserContextgetConnectionDirectory in interface UserContextgetConnectionDirectory in class DelegatingUserContextorg.apache.guacamole.GuacamoleException - If an error occurs while creating the
Directory.Copyright © 2020. All rights reserved.