Package org.eclipse.keypop.card
Interface CardResponseApi
- All Superinterfaces:
Serializable
Group of multiple APDU responses.
Contains a list of ApduResponseApi
received from the card in response to a CardRequestSpi
and the associated execution status.
The execution status includes the state of the logical channel after the operation and the
information saying whether a response is present for all APDUs in the CardRequestSpi
.
Responses may be missing when this object is embedded in an AbstractApduException
, for
example, if the card is removed during processing or if an unsuccessful status word was received
and processing was requested to be stopped in this case (see CardRequestSpi.stopOnUnsuccessfulStatusWord()
).
- Since:
- 1.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGets a list of all responses received to the executed APDU requests.boolean
Gets the state of the logical channel following the execution of the request.
-
Method Details
-
getApduResponses
List<ApduResponseApi> getApduResponses()Gets a list of all responses received to the executed APDU requests.- Returns:
- A non-null list, empty if there is no response.
- Since:
- 1.0.0
-
isLogicalChannelOpen
boolean isLogicalChannelOpen()Gets the state of the logical channel following the execution of the request.- Returns:
- True if the logical channel is open.
- Since:
- 1.0.0
-