Contents

setPolicies(_:)

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

Declaration

func setPolicies(_ policies: Any!)

Parameters

  • policies:

    The policies to use when evaluating the certificates’ status. You can pass either a Secpolicy object or an Nsarray (containing one or more Secpolicy instances) in this parameter. If policies is set to nil, the Apple X.509 Basic Policy is used.

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