Package com.blockchyp.client
Class TerminalRequest
java.lang.Object
com.blockchyp.client.TerminalRequest
This class is used to wrap conventional transaction requests with an outer structure that adds API credentials.
This is done because the terminal talks to the gateway directly and will need to generate gateway API headers.
The credentials should almost always be transient credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the API key.Returns the bearer token.Returns the underlying request object.Returns the signing key.voidSets the API key.voidsetBearerToken(String bearerToken) Sets the bearer token.voidsetRequest(Object request) Sets the underlying request.voidsetSigningKey(String signingKey) Sets the signing key.
-
Constructor Details
-
TerminalRequest
public TerminalRequest()
-
-
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:
- bearer token.
-
setBearerToken
Sets the bearer token.- Parameters:
bearerToken- the bearer token.
-
getSigningKey
Returns the signing key.- Returns:
- the signing key.
-
setSigningKey
Sets the signing key.- Parameters:
signingKey- the signing key.
-
getRequest
Returns the underlying request object.- Returns:
- the underlying request.
-
setRequest
Sets the underlying request.- Parameters:
request- the underlying request.
-