Trait security_framework::os::macos::identity::SecIdentityExt

source ·
pub trait SecIdentityExt {
    // Required method
    fn with_certificate(
        keychains: &[SecKeychain],
        certificate: &SecCertificate,
    ) -> Result<SecIdentity>;
}
Expand description

An extension trait adding OSX specific functionality to SecIdentity.

Required Methods§

source

fn with_certificate( keychains: &[SecKeychain], certificate: &SecCertificate, ) -> Result<SecIdentity>

Creates an identity corresponding to a certificate, looking in the provided keychains for the corresponding private key.

To search the default keychains, use an empty slice for keychains.

https://developer.apple.com/documentation/security/1401160-secidentitycreatewithcertificate

Object Safety§

This trait is not object safe.

Implementors§