An object used to evaluate trust.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Security
Declaration
class SecTrust
An object used to evaluate trust.
SDKs
Framework
class SecTrust
Construct a trust object from a certificate and a policy.
func Sec Trust Create With Certificates(CFType Ref, CFType Ref?, Unsafe Mutable Pointer<Sec Trust?>) -> OSStatus
Creates a trust management object based on certificates and policies.
func Sec Trust Get Type ID() -> CFType ID
Returns the unique identifier of the opaque type to which a trust object belongs.