Function

SecTaskCopyValuesForEntitlements(_:_:_:)

Returns the values of multiple entitlements for the represented task.

Declaration

func SecTaskCopyValuesForEntitlements(_ task: SecTask, _ entitlements: CFArray, _ error: UnsafeMutablePointer<Unmanaged<CFError>?>?) -> CFDictionary?

Parameters

task

The task whose entitlements you want.

entitlements

An array of the names of the entitlement to be fetched.

error

A pointer that the function uses to provide an error object with details if an error occurs. The caller becomes responsible for the object's memory. Pass NULL to ignore the error.

Return Value

A dictionary containing the entitlement names as keys with the corresponding entitlements as the dictionary values, or nil on error.

See Also

Tasks

func SecTaskCreateFromSelf(CFAllocator?) -> SecTask?

Creates a task object for the current task.

func SecTaskCreateWithAuditToken(CFAllocator?, audit_token_t) -> SecTask?

Creates a task object for the task that sent the Mach message represented by the audit token.

class SecTask

The Core Foundation type representing a task.

func SecTaskGetTypeID() -> CFTypeID

Returns the unique identifier of the opaque type to which a task object belongs.