CommandType

SmartCard Application Protocol Data Unit - Command

  • Returns bytes in the command body. If this APDU has no body, this property should return nil

  • ne

    Returns the maximum number of expected data bytes in a response APDU (Ne/Le). 0 = unlimited/unknown, nil = no output expected

  • nc

    Returns the number of data bytes in the command body (Nc) or 0 if this APDU has no body. This call should be equivalent to self.data.count.

  • cla

    Returns the value of the class byte CLA.

  • ins

    Returns the value of the instruction byte INS.

  • p1

    Returns the value of the parameter byte P1.

  • p2

    Returns the value of the parameter byte P2.

  • Serialized APDU message

  • toLogicalChannel(channelNo:) Extension method

    Convert a Command to be send on a given channel No

    Throws

    CardError or APDU.Error