[−][src]Struct schannel::crypt_prov::AcquireOptions
A builder for CryptProv
s.
Methods
impl AcquireOptions
[src]
pub fn new() -> AcquireOptions
[src]
Returns a new builder with default settings.
pub fn container(&mut self, container: &str) -> &mut AcquireOptions
[src]
Sets the name for this key container.
This should not be set if verify_context
is set.
pub fn provider(&mut self, provider: &str) -> &mut AcquireOptions
[src]
Sets the name of the CSP to be used.
pub fn verify_context(&mut self, verify_context: bool) -> &mut AcquireOptions
[src]
If set, private keys will not be accessible or persisted.
pub fn new_keyset(&mut self, new_keyset: bool) -> &mut AcquireOptions
[src]
If set, the container will be created.
pub fn machine_keyset(&mut self, machine_keyset: bool) -> &mut AcquireOptions
[src]
If set, the container will be stored as a machine rather than user keys.
pub fn silent(&mut self, silent: bool) -> &mut AcquireOptions
[src]
If set, an error will be returned if user intervention is required rather than displaying a dialog.
pub fn acquire(&self, type_: ProviderType) -> Result<CryptProv>
[src]
Acquires a container.
Auto Trait Implementations
impl Send for AcquireOptions
impl Sync for AcquireOptions
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 = !
🔬 This is a nightly-only experimental API. (
try_from
)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>,