ResponseType

public protocol ResponseType

SmartCard Application Protocol Data Unit - Response

  • Returns bytes in the response body. If this APDU has no body, this method returns nil

    Declaration

    Swift

    var data: Data? { get }
  • nr

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

    Declaration

    Swift

    var nr: Int { get }
  • sw1

    Returns the value of the status byte SW1 as a value between 0 and 255.

    Declaration

    Swift

    var sw1: UInt8 { get }
  • sw2

    Returns the value of the status byte SW2 as a value between 0 and 255.

    Declaration

    Swift

    var sw2: UInt8 { get }
  • sw

    Returns the value of the status bytes SW1 and SW2 as a single status word SW.

    Declaration

    Swift

    var sw: UInt16 { get }