Struct schannel::cert_context::AcquirePrivateKeyOptions
source · pub struct AcquirePrivateKeyOptions<'a> { /* private fields */ }
Expand description
A builder type for certificate private key lookup.
Implementations§
source§impl<'a> AcquirePrivateKeyOptions<'a>
impl<'a> AcquirePrivateKeyOptions<'a>
sourcepub fn compare_key(
&mut self,
compare_key: bool
) -> &mut AcquirePrivateKeyOptions<'a>
pub fn compare_key(
&mut self,
compare_key: bool
) -> &mut AcquirePrivateKeyOptions<'a>
If set, the certificate’s public key will be compared with the private key to ensure a match.
sourcepub fn silent(&mut self, silent: bool) -> &mut AcquirePrivateKeyOptions<'a>
pub fn silent(&mut self, silent: bool) -> &mut AcquirePrivateKeyOptions<'a>
If set, the lookup will not display any user interface, even if that causes the lookup to fail.
sourcepub fn acquire(&self) -> Result<PrivateKey>
pub fn acquire(&self) -> Result<PrivateKey>
Acquires the private key handle.