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

# SFCertificateView

A view that displays the contents of a certificate, with options to display certificate details, display trust settings, and allow users to edit a certificate’s trust settings.

```
class SFCertificateView
```

## Overview

The following figure shows a certificate view that includes editable trust settings and certificate details.

![Certificate view](images/com.apple.securityinterface/media-1965608.jpg)

## Topics

### Specifying the Certificate to Display

[`setCertificate(_:)`](/documentation/SecurityInterface/SFCertificateView/setCertificate(_:))

Specifies the certificate that’s displayed in the view.

### Customizing the Appearance and Behavior of the View

[`setDetailsDisclosed(_:)`](/documentation/SecurityInterface/SFCertificateView/setDetailsDisclosed(_:))

Sets whether the certificate details subview is disclosed.

[`setDisplayDetails(_:)`](/documentation/SecurityInterface/SFCertificateView/setDisplayDetails(_:))

Specifies whether the user can see the certificate details.

[`setDisplayTrust(_:)`](/documentation/SecurityInterface/SFCertificateView/setDisplayTrust(_:))

Specifies whether the user can see the certificate’s trust settings.

[`setEditableTrust(_:)`](/documentation/SecurityInterface/SFCertificateView/setEditableTrust(_:))

Specifies whether the user can edit the certificate’s trust settings.

[`setPolicies(_:)`](/documentation/SecurityInterface/SFCertificateView/setPolicies(_:))

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

[`setPoliciesDisclosed(_:)`](/documentation/SecurityInterface/SFCertificateView/setPoliciesDisclosed(_:))

Specifies whether the trust policy settings subview is disclosed.

### Getting Information About the View

[`certificate()`](/documentation/SecurityInterface/SFCertificateView/certificate())

Returns the certificate currently displayed in the view.

[`detailsDisplayed()`](/documentation/SecurityInterface/SFCertificateView/detailsDisplayed())

Indicates if the view currently shows the certificate’s details.

[`detailsDisclosed()`](/documentation/SecurityInterface/SFCertificateView/detailsDisclosed())

Returns whether the view currently shows the certificate’s details.

[`isTrustDisplayed()`](/documentation/SecurityInterface/SFCertificateView/isTrustDisplayed())

Indicates if the view currently shows the certificate’s trust settings.

[`isEditable()`](/documentation/SecurityInterface/SFCertificateView/isEditable())

Indicates if the view allows the user to edit the certificate’s trust.

[`policies()`](/documentation/SecurityInterface/SFCertificateView/policies())

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

[`policiesDisclosed()`](/documentation/SecurityInterface/SFCertificateView/policiesDisclosed())

Returns whether the trust policy subview is disclosed.

### Saving User Trust Settings

[`saveTrustSettings()`](/documentation/SecurityInterface/SFCertificateView/saveTrustSettings())

Saves the user’s current trust settings for the displayed certificate.

### Constants

[Notifications](/documentation/SecurityInterface/notifications)

Notifications sent by this class.



---

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)