pub struct HmacSecretConfig { /* private fields */ }
Expand description
Logical module for configuring the hmac-secret authenticator extension.
Implementations§
Source§impl HmacSecretConfig
impl HmacSecretConfig
Sourcepub fn new_with_uv_only() -> Self
pub fn new_with_uv_only() -> Self
Create a new configuration which only supports creating credentials gated by UV
Sourcepub fn new_without_uv() -> Self
pub fn new_without_uv() -> Self
Create a new configuration which supports creating 2 credentials:
- Gated by UV
- Not protected by UV, and only needs UP
Sourcepub fn enable_on_make_credential(self) -> Self
pub fn enable_on_make_credential(self) -> Self
Enable support for returning the hmac-secret values on credential creation
Sourcepub fn hmac_secret_mc(&self) -> bool
pub fn hmac_secret_mc(&self) -> bool
Check whether this configuration supports hmac-secret-mc
,
meaning it supports retrieving the symmetric secret on credential creation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HmacSecretConfig
impl RefUnwindSafe for HmacSecretConfig
impl Send for HmacSecretConfig
impl Sync for HmacSecretConfig
impl Unpin for HmacSecretConfig
impl UnwindSafe for HmacSecretConfig
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