Function

SecTrustedApplicationSetData

Sets the data of a given trusted app instance.

Declaration

OSStatus SecTrustedApplicationSetData(SecTrustedApplicationRef appRef, CFDataRef data);

Parameters

appRef

A trusted application object.

data

A reference to the data to set in the trusted application.

Return Value

Discussion

If you use the SecTrustedApplicationCopyData method to extract the data from a trusted app instance for storage or transmission, you can use the SecTrustedApplicationSetData method to insert that data into a new trusted app. Doing so creates an object that identifies the same app as the original trusted app instance.

See Also

Trusted Applications

SecTrustedApplicationCreateFromPath

Creates a trusted app instance based on the app at the given path in the file system.

Deprecated
SecTrustedApplicationCopyData

Retrieves the data of a trusted app instance.

Deprecated
SecTrustedApplicationRef

An opaque type that contains information about a trusted app.

SecTrustedApplicationGetTypeID

Returns the unique identifier of the opaque type to which a trusted app instance belongs.