Class StandardFormatter

java.lang.Object
com.caplin.keymaster.StandardFormatter
All Implemented Interfaces:
IKeyMasterFormatter

public class StandardFormatter extends Object implements IKeyMasterFormatter
Formats a token for use by StreamLink.
  • Constructor Details

    • StandardFormatter

      public StandardFormatter()
  • Method Details

    • format

      public String format(IAuthenticationParameters authParams, String token)
      Description copied from interface: IKeyMasterFormatter
      Formats the supplied token, including any additional information supplied by IAuthenticationParameters
      Specified by:
      format in interface IKeyMasterFormatter
      Parameters:
      authParams - Additional information that may be required by the formatter.
      token - The token to be formatted.
      Returns:
      A string defining the token in a format that can be used by the StreamLink application that requested it.
    • formatError

      public String formatError(String error)