Package org.knowm.xchange.utils
Class AuthUtils
java.lang.Object
org.knowm.xchange.utils.AuthUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getBasicAuth
(String user, String pass) Generates a BASE64 Basic Authentication Stringstatic Properties
getSecretProperties
(String prefix) Read the secret properties from a resource calledprefix
-secret.keys
.static void
setApiAndSecretKey
(ExchangeSpecification exchangeSpec) Read the API invalid input: '&' Secret key from a resource calledsecret.keys
.static void
setApiAndSecretKey
(ExchangeSpecification exchangeSpec, String prefix) Read the API invalid input: '&' Secret key from a resource calledprefix
-secret.keys
.
-
Constructor Details
-
AuthUtils
public AuthUtils()
-
-
Method Details
-
getBasicAuth
Generates a BASE64 Basic Authentication String- Returns:
- BASE64 Basic Authentication String
-
setApiAndSecretKey
Read the API invalid input: '&' Secret key from a resource calledsecret.keys
. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore. -
setApiAndSecretKey
Read the API invalid input: '&' Secret key from a resource calledprefix
-secret.keys
. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore. -
getSecretProperties
Read the secret properties from a resource calledprefix
-secret.keys
. NOTE: This file MUST NEVER be commited to source control. It is therefore added to .gitignore.- Returns:
- The properties or null
-