Class

TKSmartCardSlot

A single smart card reader slot in the system.

Declaration

class TKSmartCardSlot : NSObject

Overview

Use the TKSmartCardSlotManager class to manage all the smart card reader slots available to the system. You can retrieve the names of available smart card reader slots for a system using the slotNames property of a manager object, and access instances of TKSmartCardSlot using the getSlot(withName:reply:) method.

Topics

Instantiating Smart Cards

func makeSmartCard() -> TKSmartCard?

Creates a new TKSmartCard object representing the currently inserted Smart Card.

Getting the Slot State

var state: TKSmartCardSlot.State

The current state of the Smart Card reader slot.

enum TKSmartCardSlot.State

All smart card slot states.

Getting the Slot Configuration

var name: String

The name of the Smart Card reader slot.

var maxInputLength: Int

The maximum length of input APDU (Application Protocol Data Unit) that the Smart Card reader slot is able to transfer to the Smart Card.

var maxOutputLength: Int

The maximum length of output APDU (Application Protocol Data Unit) that the Smart Card reader slot is able to transfer from the Smart Card.

Reading the Answer to Reset

var atr: TKSmartCardATR?

The ATR (Answer to Reset) of the inserted Smart Card, or nil if no Smart Card is inserted or the inserted Smart Card is mute.

class TKSmartCardATR

A parsed ATR (Answer To Reset) message from a Smart Card.

Relationships

Inherits From

Conforms To

See Also

Smart Cards

class TKSmartCard

A representation of a smart card.

class TKSmartCardSlotManager

An interface to all available smart card reader slots.