Enumeration

SecItemClass

Specifies a keychain item’s class code.

Declaration

typedef enum SecItemClass : FourCharCode {
    ...
} SecItemClass;

Overview

These enumerations define constants your application can use to specify the type of the keychain item you wish to create, dispose, add, delete, update, copy, or locate. You can also use these constants with the tag constant SecItemAttr.

Topics

Constants

kSecInternetPasswordItemClass

Indicates that the item is an Internet password.

kSecGenericPasswordItemClass

Indicates that the item is a generic password.

kSecAppleSharePasswordItemClass

Indicates that the item is an AppleShare password.

Deprecated
kSecCertificateItemClass

Indicates that the item is an X509 certificate.

kSecPublicKeyItemClass

Indicates that the item is a public key of a public-private pair.

kSecPrivateKeyItemClass

Indicates that the item is a private key of a public-private pair.

kSecSymmetricKeyItemClass

Indicates that the item is a private key used for symmetric-key encryption.

See Also

Legacy Keychain Item Creation

SecKeychainItemCreateFromContent

Creates a new keychain item from the supplied parameters.

SecKeychainItemCreateCopy

Copies a keychain item from one keychain to another.

SecKeychainItemCreatePersistentReference

Creates a persistent reference for a keychain item.

SecKeychainItemCopyFromPersistentReference

Provides a keychain item reference, given a persistent reference.