Contents

smartCard

The smart card for the active exclusive session and selected application.

Declaration

var smartCard: TKSmartCard { get }

Discussion

This property can only be accessed in the implementation of a TKTokenSessionDelegate protocol delegate method. If the associated token has a value set for the aid property, this property opens an exclusive session to the card, with the application already selected.

You should not call beginSession(reply:) or endSession() on the returned value. Instead, the system will take care of beginning the exclusive session and terminating it when the current token request servicing is finished.

You can store any kind of information representing state of the card using the context property. This property will be automatically set to nil if the card is reset or accessed by different TKSmartCard instance, such as by another process. You can check the context property for any previously stored values as a way to avoid costly state restoration before performing an operation.