pub struct SecurityConfig {
pub check_mlock: bool,
pub disable_core_dumps: bool,
pub constant_signature_counter: bool,
pub enable_credential_backup: 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
enable_credential_backup: boolEnable Passless encrypted credential backup/restore vendor commands.
Disabled by default because exporting a software credential changes its security model. TPM and other non-exportable key providers remain unsupported.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more