GUACAMOLE-221: Add client support for the "required" instruction.

This commit is contained in:
Michael Jumper
2020-11-01 20:21:09 -08:00
parent ada45ce8a5
commit 688ff5310c
3 changed files with 34 additions and 2 deletions

View File

@@ -40,7 +40,16 @@ public enum GuacamoleProtocolCapability {
* {@link GuacamoleProtocolVersion#VERSION_1_1_0}.
*/
PROTOCOL_VERSION_DETECTION(GuacamoleProtocolVersion.VERSION_1_1_0),
/**
* Support for the "required" instruction. The "required" instruction
* allows the server to explicitly request connection parameters from the
* client without which the connection cannot continue, such as user
* credentials. Support for this instruction was introduced in
* {@link GuacamoleProtocolVersion#VERSION_1_3_0}.
*/
REQUIRED_INSTRUCTION(GuacamoleProtocolVersion.VERSION_1_3_0),
/**
* Support for the "timezone" handshake instruction. The "timezone"
* instruction allows the client to request that the server forward their

View File

@@ -46,11 +46,18 @@ public class GuacamoleProtocolVersion {
*/
public static final GuacamoleProtocolVersion VERSION_1_1_0 = new GuacamoleProtocolVersion(1, 1, 0);
/**
* Protocol version 1.3.0, which introduces the "required" instruction
* allowing the server to explicitly request connection parameters from the
* client.
*/
public static final GuacamoleProtocolVersion VERSION_1_3_0 = new GuacamoleProtocolVersion(1, 3, 0);
/**
* The most recent version of the Guacamole protocol at the time this
* version of GuacamoleProtocolVersion was built.
*/
public static final GuacamoleProtocolVersion LATEST = VERSION_1_1_0;
public static final GuacamoleProtocolVersion LATEST = VERSION_1_3_0;
/**
* A regular expression that matches the VERSION_X_Y_Z pattern, where