Contents

setPolicies(_:)

Specifies the policies to use when evaluating this certificate’s status.

Declaration

func setPolicies(_ policies: Any!)

Parameters

  • policies:

    The policy or policies to use. You can pass either a SecPolicyRef object or an NSArray (containing one or more objects of type SecPolicyRef ) in this parameter. If policies is set to nil, the Apple X.509 Basic Policy is used. See Certificate Key And Trust Services for a list of policies and object identifiers provided by the AppleX509TP module.

Discussion

Applications typically display a certificate view in the context of a specific use, such as SSL or S/MIME. You should set only the policy references that apply to your intended use.

See Also

Related Documentation

Customizing the Appearance and Behavior of the View