Function

SecTrustedApplicationSetData(_:_:)

Sets the data of a given trusted app instance.

Declaration

func SecTrustedApplicationSetData(_ appRef: SecTrustedApplication, _ data: CFData) -> OSStatus

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

func SecTrustedApplicationCreateFromPath(UnsafePointer<Int8>?, UnsafeMutablePointer<SecTrustedApplication?>) -> OSStatus

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

Deprecated
class SecTrustedApplication

An opaque type that contains information about a trusted app.

func SecTrustedApplicationGetTypeID() -> CFTypeID

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