[−][src]Struct security_framework::import_export::Pkcs12ImportOptions
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]
fn keychain(&mut self, keychain: SecKeychain) -> &mut Self
[src]
fn access(&mut self, access: SecAccess) -> &mut Self
[src]
impl Default for Pkcs12ImportOptions
[src]
fn default() -> 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]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,