Struct security_framework::import_export::Pkcs12ImportOptions
[−]
[src]
pub struct Pkcs12ImportOptions { /* fields omitted */ }
A builder type to import an identity from PKCS#12 formatted data.
Methods
impl Pkcs12ImportOptions
[src]
fn new() -> Pkcs12ImportOptions
Creates a new builder with default options.
fn passphrase(&mut self, passphrase: &str) -> &mut Self
Specifies the passphrase to be used to decrypt the data.
This must be specified, as unencrypted PKCS#12 data is not supported.
fn keychain(&mut self, keychain: SecKeychain) -> &mut Self
Deprecated
Replaced by os::macos::import_export::Pkcs12ImportOptionsExt::keychain
.
fn access(&mut self, access: SecAccess) -> &mut Self
Deprecated
Replaced by os::macos::import_export::Pkcs12ImportOptionsExt::access
.
fn import(&self, pkcs12_data: &[u8]) -> Result<Vec<ImportedIdentity>>
Imports identities from PKCS#12 encoded data.
Trait Implementations
impl Default for Pkcs12ImportOptions
[src]
fn default() -> Pkcs12ImportOptions
Returns the "default value" for a type. Read more
impl Pkcs12ImportOptionsExt for Pkcs12ImportOptions
[src]
fn keychain(&mut self, keychain: SecKeychain) -> &mut Self
Specifies the keychain in which to import the identity. Read more
fn access(&mut self, access: SecAccess) -> &mut Self
Specifies the access control to be associated with the identity.