Package org.eclipse.keypop.card
Interface ApduResponseApi
- All Superinterfaces:
Serializable
Data received in response to an APDU command.
Consists in a data part of variable length and a status word (SW1SW2).
- Since:
- 1.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getApdu()
Gets the raw data received from the card (including the status word).byte[]
Gets the data part of the response received from the card (excluding the status word).int
Gets the status word of the APDU as an int.
-
Method Details
-
getApdu
byte[] getApdu()Gets the raw data received from the card (including the status word).- Returns:
- An array of at least 2 bytes.
- Since:
- 1.0.0
-
getDataOut
byte[] getDataOut()Gets the data part of the response received from the card (excluding the status word).- Returns:
- A non-null byte array.
- Since:
- 1.0.0
-
getStatusWord
int getStatusWord()Gets the status word of the APDU as an int.- Returns:
- An integer between 0000h and FFFFh.
- Since:
- 1.0.0
-