pub struct SecurityConfig {
pub check_mlock: bool,
pub disable_core_dumps: bool,
pub constant_signature_counter: bool,
pub always_uv: bool,
pub user_verification_registration: bool,
pub user_verification_authentication: bool,
pub notification_timeout: u32,
}Expand description
Security configuration
Fields§
§check_mlock: boolCheck if mlock is available to prevent credentials from being swapped to disk
disable_core_dumps: boolDisable core dumps to prevent credential leakage
constant_signature_counter: boolEnable constant signature counter to help RPs detect cloned authenticators
always_uv: boolAlways require user verification for all operations
- When PIN is set + pin.enforcement=“required”: requires PIN
- When PIN is set + pin.enforcement=“optional”: depends on context
- When PIN is set + pin.enforcement=“never”: uses notification fallback
- When PIN not set: uses notification
user_verification_registration: boolShow user verification notification during registration
user_verification_authentication: boolShow user verification notification during authentication
notification_timeout: u32Notification timeout in seconds (0 = no timeout)
Implementations§
Source§impl SecurityConfig
impl SecurityConfig
Sourcepub fn field_docs() -> &'static [(&'static str, &'static str)]
pub fn field_docs() -> &'static [(&'static str, &'static str)]
Get documentation for all fields Returns an array of (field_name, documentation) tuples
Sourcepub fn struct_doc() -> &'static str
pub fn struct_doc() -> &'static str
Get struct-level documentation
Sourcepub fn to_toml_fields(&self) -> Vec<(&'static str, String)>
pub fn to_toml_fields(&self) -> Vec<(&'static str, String)>
Get field values as TOML-formatted strings
Trait Implementations§
Source§impl ClapSerde for SecurityConfig
impl ClapSerde for SecurityConfig
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityConfig
impl Debug for SecurityConfig
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&mut <SecurityConfig as ClapSerde>::Opt> for SecurityConfig
impl From<&mut <SecurityConfig as ClapSerde>::Opt> for SecurityConfig
Source§impl From<<SecurityConfig as ClapSerde>::Opt> for SecurityConfig
impl From<<SecurityConfig as ClapSerde>::Opt> for SecurityConfig
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnsafeUnpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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