Function

SecKeychainItemCopyAccess

Retrieves the access of a given keychain item.

Declaration

OSStatus SecKeychainItemCopyAccess(SecKeychainItemRef itemRef, SecAccessRef  _Nullable *access);

Parameters

itemRef

A keychain item.

access

On return, points to the keychain item’s access instance. Call the CFRelease method to release this access instance when you are finished using it.

Return Value

Discussion

Use this method to retrieve the access instance from a keychain item. Alternatively, you can look for the kSecAttrAccess attribute among the keychain item’s attributes when you call the SecItemCopyMatching method.

See Also

Keychain Item Access

SecKeychainItemSetAccess

Sets the access of a given keychain item.