An object that represents a cryptographic key.
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Sec instance that represents a key that is stored in a keychain can be safely cast to a
Sec for manipulation as a keychain item. On the other hand, if the key is not stored in a keychain, casting the object to a
Sec and passing it to Keychain Services functions returns errors.