<!--
{
  "availability" : [
    "macOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFCertificateView/setPolicies(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFCertificateView(im)setPolicies:"
  },
  "title" : "setPolicies(_:)"
}
-->

# setPolicies(_:)

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

```
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 <doc://com.apple.documentation/documentation/Security/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

[`func policies() -> [Any]!`](/documentation/SecurityInterface/SFCertificateView/policies())

Returns an array of policies used to evaluate the status of the displayed certificate.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)