---
title: kSecAttrTokenIDSecureEnclave
framework: security
role: symbol
role_heading: Global Variable
path: security/ksecattrtokenidsecureenclave
---

# kSecAttrTokenIDSecureEnclave

Specifies an item should be stored in the device’s Secure Enclave.

## Declaration

```swift
let kSecAttrTokenIDSecureEnclave: CFString
```

## Mentioned in

Protecting keys with the Secure Enclave

## Discussion

Discussion The only keychain items supported by the Secure Enclave are 256-bit elliptic curve private keys (those that have key type kSecAttrKeyTypeEC). Such keys must be generated directly on the Secure Enclave using the SecKeyGeneratePair(_:_:_:) function with the kSecAttrTokenID key set to kSecAttrTokenIDSecureEnclave in the parameters dictionary. important: It is not possible to import pre-existing keys into the Secure Enclave.
