Struct schannel::cert_store::PfxImportOptions
source · pub struct PfxImportOptions { /* private fields */ }
Expand description
A builder type for imports of PKCS #12 archives.
Implementations§
source§impl PfxImportOptions
impl PfxImportOptions
sourcepub fn new() -> PfxImportOptions
pub fn new() -> PfxImportOptions
Returns a new PfxImportOptions
with default settings.
sourcepub fn password(&mut self, password: &str) -> &mut PfxImportOptions
pub fn password(&mut self, password: &str) -> &mut PfxImportOptions
Sets the password to be used to decrypt the archive.
sourcepub fn no_persist_key(&mut self, no_persist_key: bool) -> &mut PfxImportOptions
pub fn no_persist_key(&mut self, no_persist_key: bool) -> &mut PfxImportOptions
If set, the private key in the archive will not be persisted.
If not set, private keys are persisted on disk and must be manually deleted.
sourcepub fn include_extended_properties(
&mut self,
include_extended_properties: bool
) -> &mut PfxImportOptions
pub fn include_extended_properties( &mut self, include_extended_properties: bool ) -> &mut PfxImportOptions
If set, all extended properties of the certificate will be imported.
sourcepub fn exportable_private_key(
&mut self,
exportable_private_key: bool
) -> &mut PfxImportOptions
pub fn exportable_private_key( &mut self, exportable_private_key: bool ) -> &mut PfxImportOptions
If set, the private key in the archive will be exportable.
sourcepub fn machine_keyset(&mut self, machine_keyset: bool) -> &mut PfxImportOptions
pub fn machine_keyset(&mut self, machine_keyset: bool) -> &mut PfxImportOptions
If set, the private keys are stored under the local computer and not under the current user.
Trait Implementations§
source§impl Default for PfxImportOptions
impl Default for PfxImportOptions
source§fn default() -> PfxImportOptions
fn default() -> PfxImportOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PfxImportOptions
impl Send for PfxImportOptions
impl Sync for PfxImportOptions
impl Unpin for PfxImportOptions
impl UnwindSafe for PfxImportOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more