kSecAttrTokenID
A key whose value indicates that a cryptographic key is in an external store.
Declaration
let kSecAttrTokenID: CFStringMentioned in
Discussion
The corresponding value is of type CFString, and may only be one of the constants specified in Token ID Values. Presence of this key indicates that the item is backed by an external store, as uniquely identified by the value. An item without this attribute is stored as normal in the keychain database.
Use this attribute only in the top-level parameter dictionary during key creation and not in one of the private or public key sub-dictionaries given by kSecPrivateKeyAttrs or kSecPublicKeyAttrs, respectively. For an example, see Protecting keys with the Secure Enclave.