<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Security",
  "identifier" : "/documentation/Security/SecItemClass",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Security"
    ],
    "preciseIdentifier" : "c:@E@SecItemClass"
  },
  "title" : "SecItemClass"
}
-->

# SecItemClass

Specifies a keychain item’s class code.

```
enum 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`](/documentation/Security/SecItemAttr).

## Topics

### Constants

[`SecItemClass.internetPasswordItemClass`](/documentation/Security/SecItemClass/internetPasswordItemClass)

Indicates that the item is an Internet password.

[`SecItemClass.genericPasswordItemClass`](/documentation/Security/SecItemClass/genericPasswordItemClass)

Indicates that the item is a generic password.

[`kSecAppleSharePasswordItemClass`](/documentation/Security/SecItemClass/kSecAppleSharePasswordItemClass)

Indicates that the item is an AppleShare password.

[`SecItemClass.certificateItemClass`](/documentation/Security/SecItemClass/certificateItemClass)

Indicates that the item is an X509 certificate.

[`SecItemClass.publicKeyItemClass`](/documentation/Security/SecItemClass/publicKeyItemClass)

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

[`SecItemClass.privateKeyItemClass`](/documentation/Security/SecItemClass/privateKeyItemClass)

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

[`SecItemClass.symmetricKeyItemClass`](/documentation/Security/SecItemClass/symmetricKeyItemClass)

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



---

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)