kSecAttrAccess
A key with a value that indicates access control list settings for the item.
Declaration
let kSecAttrAccess: CFStringDiscussion
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
kSecAttrAccesskey to the dictionary you pass to SecItemAdd(_:_:).Modify a keychain item, by adding the
kSecAttrAccesskey to the dictionary you pass as the second parameter to SecItemUpdate(_:_:).
You can’t use this attribute to:
Search for an item by its access instance; for example, by adding
kSecAttrAccessto the dictionary you pass as the first parameter to SecItemUpdate(_:_:). SecItemUpdate(_:_:) and SecItemCopyMatching(_:_:) ignore this key when searching for keychain items.Get an item’s access instance with SecItemCopyMatching(_:_:). To get an item’s access instance, call SecKeychainItemCopyAccess(_:_:).