Package com.blockchyp.client
Class APICredentials
java.lang.Object
com.blockchyp.client.APICredentials
Encapsulates the big three BlockChyp API credentials.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.APICredentials(String apiKey, String bearerToken, String signingKey) Alternate constructor that initializes all the credential fields. -
Method Summary
Modifier and TypeMethodDescriptionReturns the API key.Returns the bearer token.Returns the signing key.voidSets the API key.voidsetBearerToken(String bearerToken) Sets the bearer token.voidsetSigningKey(String signingKey) Sets the signing key.
-
Constructor Details
-
APICredentials
public APICredentials()Default constructor. -
APICredentials
Alternate constructor that initializes all the credential fields.- Parameters:
apiKey- the API keybearerToken- the bearer tokensigningKey- the signing key.
-
-
Method Details
-
getApiKey
Returns the API key.- Returns:
- the API key.
-
setApiKey
Sets the API key.- Parameters:
apiKey- the API key.
-
getBearerToken
Returns the bearer token.- Returns:
- the bearer token.
-
setBearerToken
Sets the bearer token.- Parameters:
bearerToken- the bearer token.
-
getSigningKey
Returns the signing key. This is used to build HMAC signatures for API requests.- Returns:
- signing key.
-
setSigningKey
Sets the signing key.- Parameters:
signingKey- signing key.
-