---
title: "init(smartCard:aid:instanceID:tokenDriver:)"
framework: cryptotokenkit
role: symbol
role_heading: Initializer
path: "cryptotokenkit/tksmartcardtoken/init(smartcard:aid:instanceid:tokendriver:)-38ak2"
---

# init(smartCard:aid:instanceID:tokenDriver:)

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

## Declaration

```swift
init(smartCard: TKSmartCard, aid AID: Data?, instanceID: String, tokenDriver: TKSmartCardTokenDriver)
```

## Parameters

- `smartCard`: The smart card on which the created token should operate.
- `AID`: The ISO 7816-4 application identifier for the smart card.
- `instanceID`: A unique, persistent identifier for this token. This value is typically generated from the serial number of the target hardware.
- `tokenDriver`: The driver associated with the created token.

## Discussion

Discussion This is the designated initializer.
