public class TokenInjectingConnectionGroup extends DelegatingConnectionGroup
ConnectionGroup.Type| Constructor and Description |
|---|
TokenInjectingConnectionGroup(ConnectionGroup connectionGroup,
Map<String,String> tokens)
Wraps the given ConnectionGroup, automatically adding the given tokens
to each invocation of connect().
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.guacamole.net.GuacamoleTunnel |
connect(org.apache.guacamole.protocol.GuacamoleClientInformation info,
Map<String,String> tokens)
Establishes a connection to guacd using the information associated with
this object.
|
connect, getActiveConnections, getAttributes, getConnectionGroupIdentifiers, getConnectionIdentifiers, getDelegateConnectionGroup, getIdentifier, getName, getParentIdentifier, getType, setAttributes, setIdentifier, setName, setParentIdentifier, setTypepublic TokenInjectingConnectionGroup(ConnectionGroup connectionGroup, Map<String,String> tokens)
connectionGroup - The ConnectionGroup to wrap.tokens - The additional tokens to include with each call to connect().public org.apache.guacamole.net.GuacamoleTunnel connect(org.apache.guacamole.protocol.GuacamoleClientInformation info,
Map<String,String> tokens)
throws org.apache.guacamole.GuacamoleException
ConnectableTokenFilter.connect in interface Connectableconnect in class DelegatingConnectionGroupinfo - Information associated with the connecting client.tokens - A Map containing the token names and corresponding values to be
applied as parameter tokens when establishing the connection. If the
implementation does not support parameter tokens, this Map may be
ignored.org.apache.guacamole.GuacamoleException - If an error occurs while connecting to guacd, or if permission to
connect is denied.Copyright © 2020. All rights reserved.