[][src]Struct security_framework::import_export::Pkcs12ImportOptions

pub struct Pkcs12ImportOptions { /* fields omitted */ }

A builder type to import an identity from PKCS#12 formatted data.

Methods

impl Pkcs12ImportOptions[src]

pub fn new() -> Pkcs12ImportOptions[src]

Creates a new builder with default options.

pub fn passphrase(&mut self, passphrase: &str) -> &mut Self[src]

Specifies the passphrase to be used to decrypt the data.

This must be specified, as unencrypted PKCS#12 data is not supported.

pub fn keychain(&mut self, keychain: SecKeychain) -> &mut Self[src]

Deprecated

Replaced by os::macos::import_export::Pkcs12ImportOptionsExt::keychain.

pub fn access(&mut self, access: SecAccess) -> &mut Self[src]

Deprecated

Replaced by os::macos::import_export::Pkcs12ImportOptionsExt::access.

pub fn import(&self, pkcs12_data: &[u8]) -> Result<Vec<ImportedIdentity>>[src]

Imports identities from PKCS#12 encoded data.

Trait Implementations

impl Pkcs12ImportOptionsExt for Pkcs12ImportOptions[src]

impl Default for Pkcs12ImportOptions[src]

Auto Trait Implementations

impl !Send for Pkcs12ImportOptions

impl !Sync for Pkcs12ImportOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.