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

pub struct Pkcs12ImportOptions { /* fields omitted */ }

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

Implementations

impl Pkcs12ImportOptions[src]

pub fn new() -> Self[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 import(&self, pkcs12_data: &[u8]) -> Result<Vec<ImportedIdentity>>[src]

Imports identities from PKCS#12 encoded data.

Trait Implementations

impl Default for Pkcs12ImportOptions[src]

impl Pkcs12ImportOptionsExt for Pkcs12ImportOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.