Contents

kSecAttrAccess

A key with a value that indicates access control list settings for the item.

Declaration

let kSecAttrAccess: CFString

Discussion

The corresponding value is a SecAccess instance that describes the access control settings for this item. Create an access instance by calling the SecAccessCreate(_:_:_:) method. For more information, see Access Control Lists.

Use this attribute to set an access instance when you:

  • Create a keychain item, by adding the kSecAttrAccess key to the dictionary you pass to SecItemAdd(_:_:).

  • Modify a keychain item, by adding the kSecAttrAccess key to the dictionary you pass as the second parameter to SecItemUpdate(_:_:).

You can’t use this attribute to: