Enumeration

SecItemAttr

Specifies a keychain item’s attributes.

Declaration

typedef enum SecItemAttr : FourCharCode {
    ...
} 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.

Topics

Constants

kSecCreationDateItemAttr

Identifies the creation date attribute.

kSecModDateItemAttr

Identifies the modification date attribute.

kSecDescriptionItemAttr

Identifies the description attribute.

kSecCommentItemAttr

Identifies the comment attribute.

kSecCreatorItemAttr

Identifies the creator attribute.

kSecTypeItemAttr

Identifies the type attribute.

kSecScriptCodeItemAttr

Identifies the script code attribute.

kSecLabelItemAttr

Identifies the label attribute.

kSecInvisibleItemAttr

Identifies the invisible attribute.

kSecNegativeItemAttr

Identifies the negative attribute.

kSecCustomIconItemAttr

Identifies the custom icon attribute.

kSecAccountItemAttr

Identifies the account attribute.

kSecServiceItemAttr

Identifies the service attribute.

kSecGenericItemAttr

Identifies the generic attribute.

kSecSecurityDomainItemAttr

Identifies the security domain attribute.

kSecServerItemAttr

Identifies the server attribute.

kSecAuthenticationTypeItemAttr

Identifies the authentication type attribute.

kSecPortItemAttr

Identifies the port attribute.

kSecPathItemAttr

Identifies the path attribute.

kSecVolumeItemAttr

Identifies the volume attribute.

kSecAddressItemAttr

Identifies the address attribute.

kSecSignatureItemAttr

Identifies the server signature attribute.

kSecProtocolItemAttr

Identifies the protocol attribute.

kSecCertificateType

Indicates a CSSM_CERT_TYPE type.

kSecCertificateEncoding

Indicates a CSSM_CERT_ENCODING type.

kSecCrlType

Indicates a CSSM_CRL_TYPE type.

kSecCrlEncoding

Indicates a CSSM_CRL_ENCODING type.

kSecAlias

Indicates an alias.

See Also

Legacy Attribute Info

SecKeychainAttributeInfoForItemID

Obtains tags for all possible attributes of a given item class.

SecKeychainFreeAttributeInfo

Releases the memory acquired by calling the SecKeychainAttributeInfoForItemID function.

SecKeychainAttributeInfo

A structure that represents an attribute.

Keychain Item Attribute Constants For Keys

Specifies the attributes for a key item in a keychain.

SecAFPServerSignature

Represents a 16-byte Apple File Protocol server signature block.