<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKSmartCardToken",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKSmartCardToken"
  },
  "title" : "TKSmartCardToken"
}
-->

# TKSmartCardToken

A representation of a smart card based cryptographic token.

```
class TKSmartCardToken
```

## Topics

### Creating Smart Card Tokens

[`-  initWithSmartCard:AID:instanceID:tokenDriver:`](/documentation/CryptoTokenKit/TKSmartCardToken/init(smartCard:aid:instanceID:tokenDriver:)-38ak2)

Initializes a smart card token with the specified smart card, application identifier, and token driver.

### Accessing the Application Identifier

[`AID`](/documentation/CryptoTokenKit/TKSmartCardToken/aid)

The ISO 7816-4 application identifiers of the Smart Card.

### Accessing Smart Cards

[`TKSmartCard`](/documentation/CryptoTokenKit/TKSmartCard)

A representation of a smart card.

### Working with Tag-Length-Value Records

[`TKTLVRecord`](/documentation/CryptoTokenKit/TKTLVRecord)

The base class encapsulating a Tag-Length-Value record.

[`TKBERTLVRecord`](/documentation/CryptoTokenKit/TKBERTLVRecord)

An object that parses BER-encoded data and produces DER-encoded data for TLV records.

[`TKCompactTLVRecord`](/documentation/CryptoTokenKit/TKCompactTLVRecord)

An object that implements encoding using Compact-TLV encoding according to ISO 7816-4.

[`TKSimpleTLVRecord`](/documentation/CryptoTokenKit/TKSimpleTLVRecord)

An object that implements encoding using Simple-TLV encoding according to ISO 7816-4.

## Relationships

### Inherits From

[`TKToken`](/documentation/CryptoTokenKit/TKToken)

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)