Package org.apache.guacamole.net.auth
Class GuacamoleProxyConfiguration
java.lang.Object
org.apache.guacamole.net.auth.GuacamoleProxyConfiguration
Information which describes how the connection to guacd should be
established. This includes the hostname and port which guacd is listening on,
as well as the type of encryption required, if any.
- Author:
- Michael Jumper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
All possible types of encryption used by guacd. -
Constructor Summary
ConstructorsConstructorDescriptionGuacamoleProxyConfiguration
(String hostname, int port, boolean ssl) Creates a new GuacamoleProxyConfiguration having the given hostname and port, with encryption method being restricted to either NONE or SSL.GuacamoleProxyConfiguration
(String hostname, int port, GuacamoleProxyConfiguration.EncryptionMethod encryptionMethod) Creates a new GuacamoleProxyConfiguration having the given hostname, port, and encryption method. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of encryption required by guacd.Returns the hostname or address of the machine where guacd is running.int
getPort()
Returns the port that guacd is listening on.
-
Constructor Details
-
GuacamoleProxyConfiguration
public GuacamoleProxyConfiguration(String hostname, int port, GuacamoleProxyConfiguration.EncryptionMethod encryptionMethod) Creates a new GuacamoleProxyConfiguration having the given hostname, port, and encryption method.- Parameters:
hostname
- The hostname or address of the machine where guacd is running.port
- The port that guacd is listening on.encryptionMethod
- The type of encryption required by the instance of guacd running at the given hostname and port.
-
GuacamoleProxyConfiguration
Creates a new GuacamoleProxyConfiguration having the given hostname and port, with encryption method being restricted to either NONE or SSL.- Parameters:
hostname
- The hostname or address of the machine where guacd is running.port
- The port that guacd is listening on.ssl
- true if guacd requires SSL/TLS encryption, false if communication with guacd should be unencrypted.
-
-
Method Details
-
getHostname
Returns the hostname or address of the machine where guacd is running.- Returns:
- The hostname or address of the machine where guacd is running.
-
getPort
public int getPort()Returns the port that guacd is listening on.- Returns:
- The port that guacd is listening on.
-
getEncryptionMethod
Returns the type of encryption required by guacd.- Returns:
- The type of encryption required by guacd.
-