CardType

General card representation

  • atr

    Card Answer-to-reset configuration

  • Card supported protocol(s)

  • Open a communication channel to the Card.

    Note

    the basic channel assumes the channel number 0.

    Throws

    CardError when failed to connect to the Card.

  • Open a new logical channel. The channel is opened issuing a MANAGE CHANNEL command that should use the format [0x0, 0x70, 0x0, 0x0, 0x1].

    Throws

    CardError when failed to connect to the Card.

  • transmitControl(command:data:) Default implementation

    Transmit a control command to the Card/Slot

    Note

    implementation is optional.

    Throws

    CardError

    Default Implementation

    Default implementation returns empty data object.

  • initialApplicationIdentifier() Default implementation

    Provide an initial application identifier of an application on the underlying card (f.e. the root application).

    Throws

    Error when requesting the application identifier or parsing it.

    Default Implementation

    Default implementation returns nil.

  • Disconnect connection to the Card.

    Throws

    CardError