Package com.blockchyp.client.dto
Class TransientKeyResponse
java.lang.Object
com.blockchyp.client.dto.TransientKeyResponse
- All Implemented Interfaces:
IAbstractAcknowledgement
Models a response containing short-lived API credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the transient API key.Gets the transient bearer token.getError()Gets the error, if an error occurred.Gets a narrative description of the transaction result.Gets the transient signing key.booleanGets whether or not the request succeeded.voidSets the transient API key.voidsetBearerToken(String value) Sets the transient bearer token.voidSets the error, if an error occurred.voidsetResponseDescription(String value) Sets a narrative description of the transaction result.voidsetSigningKey(String value) Sets the transient signing key.voidsetSuccess(boolean value) Sets whether or not the request succeeded.
-
Constructor Details
-
TransientKeyResponse
public TransientKeyResponse()
-
-
Method Details
-
setSuccess
public void setSuccess(boolean value) Sets whether or not the request succeeded.- Parameters:
value- whether or not the request succeeded.
-
isSuccess
public boolean isSuccess()Gets whether or not the request succeeded.- Specified by:
isSuccessin interfaceIAbstractAcknowledgement- Returns:
- whether or not the request succeeded.
-
setError
Sets the error, if an error occurred.- Parameters:
value- the error, if an error occurred.
-
getError
Gets the error, if an error occurred.- Specified by:
getErrorin interfaceIAbstractAcknowledgement- Returns:
- the error, if an error occurred.
-
setResponseDescription
Sets a narrative description of the transaction result.- Parameters:
value- a narrative description of the transaction result.
-
getResponseDescription
Gets a narrative description of the transaction result.- Specified by:
getResponseDescriptionin interfaceIAbstractAcknowledgement- Returns:
- a narrative description of the transaction result.
-
setApiKey
Sets the transient API key.- Parameters:
value- the transient API key.
-
getApiKey
Gets the transient API key.- Returns:
- the transient API key.
-
setBearerToken
Sets the transient bearer token.- Parameters:
value- the transient bearer token.
-
getBearerToken
Gets the transient bearer token.- Returns:
- the transient bearer token.
-
setSigningKey
Sets the transient signing key.- Parameters:
value- the transient signing key.
-
getSigningKey
Gets the transient signing key.- Returns:
- the transient signing key.
-