transceive

fun transceive(commandApdu: ByteArray): ByteArray

Sends a command APDU to the smart card and returns the response APDU. This is a synchronous operation and will block until the response is received.

Return

The response APDU received from the card, as a ByteArray.

Parameters

commandApdu

The command APDU to send, as a ByteArray.

Throws

if there is an error during the transfer.

if the card returns an error.