CommandApdu

data class CommandApdu(val cla: Int, val ins: Int, val p1: Int, val p2: Int, val payload: ByteString, val le: Int)

A Command APDU according to ISO/IEC 7816.

Constructors

Link copied to clipboard
constructor(cla: Int, ins: Int, p1: Int, p2: Int, payload: ByteString, le: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val cla: Int

Command class byte.

Link copied to clipboard
val ins: Int

Instruction byte.

Link copied to clipboard
val le: Int

Maximum length of response data field.

Link copied to clipboard
val p1: Int

Parameter byte 1.

Link copied to clipboard
val p2: Int

Parameter byte 2.

Link copied to clipboard
val payload: ByteString

Payload.

Functions

Link copied to clipboard

Encodes the APDU as bytes.