Package org.apache.guacamole.net.auth
Class GuacamoleProxyConfiguration
- java.lang.Object
-
- org.apache.guacamole.net.auth.GuacamoleProxyConfiguration
-
public class GuacamoleProxyConfiguration extends Object
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 Classes Modifier and Type Class Description static class
GuacamoleProxyConfiguration.EncryptionMethod
All possible types of encryption used by guacd.
-
Constructor Summary
Constructors Constructor Description GuacamoleProxyConfiguration(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GuacamoleProxyConfiguration.EncryptionMethod
getEncryptionMethod()
Returns the type of encryption required by guacd.String
getHostname()
Returns the hostname or address of the machine where guacd is running.int
getPort()
Returns the port that guacd is listening on.
-
-
-
Constructor Detail
-
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
public GuacamoleProxyConfiguration(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.- 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 Detail
-
getHostname
public String 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
public GuacamoleProxyConfiguration.EncryptionMethod getEncryptionMethod()
Returns the type of encryption required by guacd.- Returns:
- The type of encryption required by guacd.
-
-