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

# SecItemAttr

Specifies a keychain item’s attributes.

```
enum SecItemAttr
```

## Overview

Not all of these attributes are used for all types of items. Which set of attributes exist for each type of item is documented in the “Data Storage Library Services” chapter of *Common Security: CDSA and CSSM, version 2 (with corrigenda)* from The Open Group (<http://www.opengroup.org/security/cdsa.htm>) for standard items and in the DL section of the *Security Release Notes* for Apple-defined item types (if any).

To obtain information about a certificate, use the CDSA Certificate Library (CL) API. To obtain information about a key, use the `SecKeyGetCSSMKey` function and the CDSA Cryptographic Service Provider (CSP) API.

For attributes for keys, see [Keychain Item Attribute Constants For Keys](/documentation/Security/keychain-item-attribute-constants-for-keys).

## Topics

### Constants

[`SecItemAttr.creationDateItemAttr`](/documentation/Security/SecItemAttr/creationDateItemAttr)

Identifies the creation date attribute.

[`SecItemAttr.modDateItemAttr`](/documentation/Security/SecItemAttr/modDateItemAttr)

Identifies the modification date attribute.

[`SecItemAttr.descriptionItemAttr`](/documentation/Security/SecItemAttr/descriptionItemAttr)

Identifies the description attribute.

[`SecItemAttr.commentItemAttr`](/documentation/Security/SecItemAttr/commentItemAttr)

Identifies the comment attribute.

[`SecItemAttr.creatorItemAttr`](/documentation/Security/SecItemAttr/creatorItemAttr)

Identifies the creator attribute.

[`SecItemAttr.typeItemAttr`](/documentation/Security/SecItemAttr/typeItemAttr)

Identifies the type attribute.

[`SecItemAttr.scriptCodeItemAttr`](/documentation/Security/SecItemAttr/scriptCodeItemAttr)

Identifies the script code attribute.

[`SecItemAttr.labelItemAttr`](/documentation/Security/SecItemAttr/labelItemAttr)

Identifies the label attribute.

[`SecItemAttr.invisibleItemAttr`](/documentation/Security/SecItemAttr/invisibleItemAttr)

Identifies the invisible attribute.

[`SecItemAttr.negativeItemAttr`](/documentation/Security/SecItemAttr/negativeItemAttr)

Identifies the negative attribute.

[`SecItemAttr.customIconItemAttr`](/documentation/Security/SecItemAttr/customIconItemAttr)

Identifies the custom icon attribute.

[`SecItemAttr.accountItemAttr`](/documentation/Security/SecItemAttr/accountItemAttr)

Identifies the account attribute.

[`SecItemAttr.serviceItemAttr`](/documentation/Security/SecItemAttr/serviceItemAttr)

Identifies the service attribute.

[`SecItemAttr.genericItemAttr`](/documentation/Security/SecItemAttr/genericItemAttr)

Identifies the generic attribute.

[`SecItemAttr.securityDomainItemAttr`](/documentation/Security/SecItemAttr/securityDomainItemAttr)

Identifies the security domain attribute.

[`SecItemAttr.serverItemAttr`](/documentation/Security/SecItemAttr/serverItemAttr)

Identifies the server attribute.

[`SecItemAttr.authenticationTypeItemAttr`](/documentation/Security/SecItemAttr/authenticationTypeItemAttr)

Identifies the authentication type attribute.

[`SecItemAttr.portItemAttr`](/documentation/Security/SecItemAttr/portItemAttr)

Identifies the port attribute.

[`SecItemAttr.pathItemAttr`](/documentation/Security/SecItemAttr/pathItemAttr)

Identifies the path attribute.

[`SecItemAttr.volumeItemAttr`](/documentation/Security/SecItemAttr/volumeItemAttr)

Identifies the volume attribute.

[`SecItemAttr.addressItemAttr`](/documentation/Security/SecItemAttr/addressItemAttr)

Identifies the address attribute.

[`SecItemAttr.signatureItemAttr`](/documentation/Security/SecItemAttr/signatureItemAttr)

Identifies the server signature attribute.

[`SecItemAttr.protocolItemAttr`](/documentation/Security/SecItemAttr/protocolItemAttr)

Identifies the protocol attribute.

[`SecItemAttr.certificateType`](/documentation/Security/SecItemAttr/certificateType)

Indicates a `CSSM_CERT_TYPE` type.

[`SecItemAttr.certificateEncoding`](/documentation/Security/SecItemAttr/certificateEncoding)

Indicates a `CSSM_CERT_ENCODING` type.

[`SecItemAttr.crlType`](/documentation/Security/SecItemAttr/crlType)

Indicates a `CSSM_CRL_TYPE` type.

[`SecItemAttr.crlEncoding`](/documentation/Security/SecItemAttr/crlEncoding)

Indicates a `CSSM_CRL_ENCODING` type.

[`SecItemAttr.alias`](/documentation/Security/SecItemAttr/alias)

Indicates an alias.



---

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)