---
title: "setPolicies(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfchooseidentitypanel/setpolicies(_:)"
---

# setPolicies(_:)

Specifies one or more policies that apply to the displayed certificates.

## Declaration

```swift
func setPolicies(_ policies: Any!)
```

## Parameters

- `policies`: The policies to use when evaluating the certificates’ status. You can pass either a doc://com.apple.documentation/documentation/Security/SecPolicy object or an doc://com.apple.documentation/documentation/Foundation/NSArray (containing one or more doc://com.apple.documentation/documentation/Security/SecPolicy instances) in this parameter. If policies is set to nil, the Apple X.509 Basic Policy is used.

## Discussion

Discussion The SFChooseIdentityPanel class evaluates trust for the certificates it displays. Applications typically display certificates 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 Certificate, Key, and Trust Services for a list of policies and object identifiers provided by the AppleX509TP Module.

## See Also

### Customizing the Appearance of the Sheet or Panel

- [setAlternateButtonTitle(_:)](securityinterface/sfchooseidentitypanel/setalternatebuttontitle(_:).md)
- [setDefaultButtonTitle(_:)](securityinterface/sfchooseidentitypanel/setdefaultbuttontitle(_:).md)
- [policies()](securityinterface/sfchooseidentitypanel/policies().md)
- [informativeText()](securityinterface/sfchooseidentitypanel/informativetext().md)
- [setInformativeText(_:)](securityinterface/sfchooseidentitypanel/setinformativetext(_:).md)
