<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CryptoTokenKit",
  "identifier" : "/documentation/CryptoTokenKit/TKToken/Configuration-swift.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CryptoTokenKit"
    ],
    "preciseIdentifier" : "c:objc(cs)TKTokenConfiguration"
  },
  "title" : "TKToken.Configuration"
}
-->

# TKToken.Configuration

A token’s configuration.

```
class Configuration
```

## Overview

When you introduce a new [`TKToken.Configuration`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class) into the system, it can inform the system about its identities, consisting of both private keys and certificates, which the [`keychainItems`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/keychainItems) property provides. Use the [`configurationData`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/configurationData) property to set additional configuration data.

You configure always-available tokens on a per-user basis. Although the token driver and the app hosting the token extension are shared across the system, the configuration for a token is stored individually for each user.

## Topics

### Reporting Configuration Information

[`instanceID`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/instanceID)

The unique, persistent identifier of this token that the token implementation creates.

[`configurationData`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/configurationData)

Additional configuration information for the token instance.

### Retrieving Keys and Certificates

[`keychainItems`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/keychainItems)

The keychain items associated with this token.

[`-  certificateForObjectID:error:`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/certificate(for:))

Returns a certificate from the keychain with the object identifier you specify.

[`-  keyForObjectID:error:`](/documentation/CryptoTokenKit/TKToken/Configuration-swift.class/key(for:))

Returns a key from the keychain with the object identifier you specify.

## Relationships

### Conforms To

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

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

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

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

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

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

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)