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
SecPolicyRefobject or an NSArray (containing one or more objects of typeSecPolicyRef) in this parameter. Ifpoliciesis 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.