SecKeychainItemSetAccess(_:_:)
Sets the access of a given keychain item.
Declaration
func SecKeychainItemSetAccess(_ itemRef: SecKeychainItem, _ access: SecAccess) -> OSStatusParameters
- itemRef:
A keychain item.
- access:
An access instance to replace the keychain item’s current access instance. Use the Secaccesscreate(_:_:_:) function to create a default access instance.
Return Value
A result code. See Security Framework Result Codes.
Discussion
Use this function to attach an access instance to a particular keychain item. Alternatively, you can use the kSecAttrAccess attribute when calling either of the SecItemAdd(_:_:) or SecItemUpdate(_:_:) methods.