Class StandardTokens

java.lang.Object
org.apache.guacamole.token.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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 Type
    Method
    Description
    static void
    Deprecated.
    Adds tokens which are standardized by guacamole-ext to the given TokenFilter and which do not require a corresponding Credentials object.
    static void
    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
    Deprecated.
    Adds tokens which are standardized by guacamole-ext to the given TokenFilter using the values from the given Credentials object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • USERNAME_TOKEN

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

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

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

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

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

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

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