Class StandardTokens


  • @Deprecated
    public class StandardTokens
    extends Object
    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 Detail

      • USERNAME_TOKEN

        public static final String USERNAME_TOKEN
        Deprecated.
        The name of the username token added via addStandardTokens().
        See Also:
        Constant Field Values
      • PASSWORD_TOKEN

        public static final String PASSWORD_TOKEN
        Deprecated.
        The name of the password token added via addStandardTokens().
        See Also:
        Constant Field Values
      • CLIENT_HOSTNAME_TOKEN

        public static final String CLIENT_HOSTNAME_TOKEN
        Deprecated.
        The name of the client hostname token added via addStandardTokens().
        See Also:
        Constant Field Values
      • CLIENT_ADDRESS_TOKEN

        public static final String CLIENT_ADDRESS_TOKEN
        Deprecated.
        The name of the client address token added via addStandardTokens().
        See Also:
        Constant Field Values
      • DATE_TOKEN

        public static final String DATE_TOKEN
        Deprecated.
        The name of the date token (server-local time) added via addStandardTokens().
        See Also:
        Constant Field Values
      • TIME_TOKEN

        public static final String TIME_TOKEN
        Deprecated.
        The name of the time token (server-local time) added via addStandardTokens().
        See Also:
        Constant Field Values
    • Method Detail

      • addStandardTokens

        public static 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. These the server date and time (GUAC_DATE and GUAC_TIME respectively).
        Parameters:
        filter - The TokenFilter to add standard tokens to.
      • addStandardTokens

        public 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. 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

        public 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. 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.