Package com.caplin.keymaster
Class StandardFormatter
- java.lang.Object
-
- com.caplin.keymaster.StandardFormatter
-
- All Implemented Interfaces:
IKeyMasterFormatter
public class StandardFormatter extends java.lang.Object implements IKeyMasterFormatter
Formats a token for use by StreamLink.
-
-
Constructor Summary
Constructors Constructor Description StandardFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
format(IAuthenticationParameters authParams, java.lang.String token)
Formats the supplied token, including any additional information supplied byIAuthenticationParameters
java.lang.String
formatError(java.lang.String error)
-
-
-
Method Detail
-
format
public java.lang.String format(IAuthenticationParameters authParams, java.lang.String token)
Description copied from interface:IKeyMasterFormatter
Formats the supplied token, including any additional information supplied byIAuthenticationParameters
- Specified by:
format
in interfaceIKeyMasterFormatter
- 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 java.lang.String formatError(java.lang.String error)
-
-