Class AuthUtils

java.lang.Object
org.knowm.xchange.utils.AuthUtils

public class AuthUtils extends Object
  • Constructor Details

    • AuthUtils

      public AuthUtils()
  • Method Details

    • getBasicAuth

      public static String getBasicAuth(String user, String pass)
      Generates a BASE64 Basic Authentication String
      Returns:
      BASE64 Basic Authentication String
    • setApiAndSecretKey

      public static void setApiAndSecretKey(ExchangeSpecification exchangeSpec)
      Read the API invalid input: '&' Secret key from a resource called secret.keys. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore.
    • setApiAndSecretKey

      public static void setApiAndSecretKey(ExchangeSpecification exchangeSpec, String prefix)
      Read the API invalid input: '&' Secret key from a resource called prefix-secret.keys. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore.
    • getSecretProperties

      public static Properties getSecretProperties(String prefix)
      Read the secret properties from a resource called prefix-secret.keys. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore.
      Returns:
      The properties or null