Package org.apache.guacamole.token
Class StandardTokens
java.lang.Object
org.apache.guacamole.token.StandardTokens
Deprecated.
Standard tokens are now supplied by default to the connect()
functions of connections and connection groups. Manually generating the
standard tokens is not necessary.
Utility class which provides access to standardized token names, as well as
facilities for generating those tokens from common objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.The name of the client address token added via addStandardTokens().static final String
Deprecated.The name of the client hostname token added via addStandardTokens().static final String
Deprecated.The name of the date token (server-local time) added via addStandardTokens().static final String
Deprecated.The name of the password token added via addStandardTokens().static final String
Deprecated.The name of the time token (server-local time) added via addStandardTokens().static final String
Deprecated.The name of the username token added via addStandardTokens(). -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addStandardTokens
(TokenFilter filter) Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter and which do not require a corresponding Credentials object.static void
addStandardTokens
(TokenFilter filter, AuthenticatedUser user) Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter using the values from the given AuthenticatedUser object, including any associated credentials.static void
addStandardTokens
(TokenFilter filter, Credentials credentials) Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter using the values from the given Credentials object.
-
Field Details
-
USERNAME_TOKEN
Deprecated.The name of the username token added via addStandardTokens().- See Also:
-
PASSWORD_TOKEN
Deprecated.The name of the password token added via addStandardTokens().- See Also:
-
CLIENT_HOSTNAME_TOKEN
Deprecated.The name of the client hostname token added via addStandardTokens().- See Also:
-
CLIENT_ADDRESS_TOKEN
Deprecated.The name of the client address token added via addStandardTokens().- See Also:
-
DATE_TOKEN
Deprecated.The name of the date token (server-local time) added via addStandardTokens().- See Also:
-
TIME_TOKEN
Deprecated.The name of the time token (server-local time) added via addStandardTokens().- See Also:
-
-
Method Details
-
addStandardTokens
Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter and which do not require a corresponding Credentials object. These the server date and time (GUAC_DATE and GUAC_TIME respectively).- Parameters:
filter
- The TokenFilter to add standard tokens to.
-
addStandardTokens
Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter using the values from the given Credentials object. These standardized tokens include the current username (GUAC_USERNAME), password (GUAC_PASSWORD), and the server date and time (GUAC_DATE and GUAC_TIME respectively). If either the username or password are not set within the given credentials, the corresponding token(s) will remain unset.- Parameters:
filter
- The TokenFilter to add standard tokens to.credentials
- The Credentials to use when populating the GUAC_USERNAME and GUAC_PASSWORD tokens.
-
addStandardTokens
Deprecated.Adds tokens which are standardized by guacamole-ext to the given TokenFilter using the values from the given AuthenticatedUser object, including any associated credentials. These standardized tokens include the current username (GUAC_USERNAME), password (GUAC_PASSWORD), and the server date and time (GUAC_DATE and GUAC_TIME respectively). If either the username or password are not set within the given user or their provided credentials, the corresponding token(s) will remain unset.- Parameters:
filter
- The TokenFilter to add standard tokens to.user
- The AuthenticatedUser to use when populating the GUAC_USERNAME and GUAC_PASSWORD tokens.
-