Contents

SecAccessCopyMatchingACLList(_:_:)

Retrieves selected ACL entries from a given access instance.

Declaration

func SecAccessCopyMatchingACLList(_ accessRef: SecAccess, _ authorizationTag: CFTypeRef) -> CFArray?

Parameters

  • accessRef:

    The access instance from which to retrieve the information.

  • authorizationTag:

    An access control list authorization tag. See Acl Authorization Keys for a list of possible values. The method returns only those ACL entries that apply to the operation indicated by this tag.

Return Value

An array containing the selected access control list entries. In Objective-C, call the CFRelease method to release the array when you are finished using it.

Discussion

An access instance can have any number of ACL entries for specific operations or sets of operations. This method returns the ACL entries that apply to the given operation. To retrieve all the ACL entries for an access instance, use the SecAccessCopyACLList(_:_:) method instead.