Struct security_framework::os::macos::import_export::ImportOptions
[−]
[src]
pub struct ImportOptions<'a> { /* fields omitted */ }
A builder type to import Security Framework types from serialized formats.
Methods
impl<'a> ImportOptions<'a>
[src]
fn new() -> ImportOptions<'a>
Creates a new builder with default options.
fn filename(&mut self, filename: &str) -> &mut ImportOptions<'a>
Sets the filename from which the imported data came.
The extension of the file will used as a hint for parsing.
fn passphrase(&mut self, passphrase: &str) -> &mut ImportOptions<'a>
Sets the passphrase to be used to decrypt the imported data.
fn passphrase_bytes(&mut self, passphrase: &[u8]) -> &mut ImportOptions<'a>
Sets the passphrase to be used to decrypt the imported data.
fn secure_passphrase(&mut self,
secure_passphrase: bool)
-> &mut ImportOptions<'a>
secure_passphrase: bool)
-> &mut ImportOptions<'a>
If set, the user will be prompted to imput the passphrase used to decrypt the imported data.
fn no_access_control(&mut self,
no_access_control: bool)
-> &mut ImportOptions<'a>
no_access_control: bool)
-> &mut ImportOptions<'a>
If set, imported items will have no access controls imposed on them.
fn alert_title(&mut self, alert_title: &str) -> &mut ImportOptions<'a>
Sets the title of the alert popup used with the secure_passphrase
option.
fn alert_prompt(&mut self, alert_prompt: &str) -> &mut ImportOptions<'a>
Sets the prompt of the alert popup used with the secure_passphrase
option.
fn items(&mut self, items: &'a mut SecItems) -> &mut ImportOptions<'a>
Sets the object into which imported items will be placed.
fn keychain(&mut self, keychain: &SecKeychain) -> &mut ImportOptions<'a>
Sets the keychain into which items will be imported.
This must be specified to import SecIdentity
s.
fn import(&mut self, data: &[u8]) -> Result<()>
Imports items from serialized data.
Trait Implementations
impl<'a> Default for ImportOptions<'a>
[src]
fn default() -> ImportOptions<'a>
Returns the "default value" for a type. Read more