ResponseApdu

data class ResponseApdu(val status: Int, val payload: ByteString = ByteString())

A response APDU according to ISO/IEC 7816-4.

Constructors

Link copied to clipboard
constructor(status: Int, payload: ByteString = ByteString())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val payload: ByteString

the payload.

Link copied to clipboard
val status: Int

the status word.

Link copied to clipboard

Gets the status as a hexadecimal string.

Link copied to clipboard
val sw1: Int

The upper byte of status.

Link copied to clipboard
val sw2: Int

The lower byte of status.

Functions

Link copied to clipboard

Encodes the APDU as bytes.