pub struct VirtualAuthenticatorOptions {Show 13 fields
pub protocol: AuthenticatorProtocol,
pub ctap2_version: Option<Ctap2Version>,
pub transport: AuthenticatorTransport,
pub has_resident_key: Option<bool>,
pub has_user_verification: Option<bool>,
pub has_large_blob: Option<bool>,
pub has_cred_blob: Option<bool>,
pub has_min_pin_length: Option<bool>,
pub has_prf: Option<bool>,
pub automatic_presence_simulation: Option<bool>,
pub is_user_verified: Option<bool>,
pub default_backup_eligibility: Option<bool>,
pub default_backup_state: Option<bool>,
}
Fields§
§protocol: AuthenticatorProtocol
§ctap2_version: Option<Ctap2Version>
Defaults to ctap2_0. Ignored if |protocol| == u2f.
transport: AuthenticatorTransport
§has_resident_key: Option<bool>
Defaults to false.
has_user_verification: Option<bool>
Defaults to false.
has_large_blob: Option<bool>
If set to true, the authenticator will support the largeBlob extension. https://w3c.github.io/webauthn#largeBlob Defaults to false.
has_cred_blob: Option<bool>
If set to true, the authenticator will support the credBlob extension. https://fidoalliance.org/specs/fido-v2.1-rd-20201208/fido-client-to-authenticator-protocol-v2.1-rd-20201208.html#sctn-credBlob-extension Defaults to false.
has_min_pin_length: Option<bool>
If set to true, the authenticator will support the minPinLength extension. https://fidoalliance.org/specs/fido-v2.1-ps-20210615/fido-client-to-authenticator-protocol-v2.1-ps-20210615.html#sctn-minpinlength-extension Defaults to false.
has_prf: Option<bool>
If set to true, the authenticator will support the prf extension. https://w3c.github.io/webauthn/#prf-extension Defaults to false.
automatic_presence_simulation: Option<bool>
If set to true, tests of user presence will succeed immediately. Otherwise, they will not be resolved. Defaults to true.
is_user_verified: Option<bool>
Sets whether User Verification succeeds or fails for an authenticator. Defaults to false.
default_backup_eligibility: Option<bool>
Credentials created by this authenticator will have the backup eligibility (BE) flag set to this value. Defaults to false. https://w3c.github.io/webauthn/#sctn-credential-backup
default_backup_state: Option<bool>
Credentials created by this authenticator will have the backup state (BS) flag set to this value. Defaults to false. https://w3c.github.io/webauthn/#sctn-credential-backup
Implementations§
Source§impl VirtualAuthenticatorOptions
impl VirtualAuthenticatorOptions
pub fn new( protocol: impl Into<AuthenticatorProtocol>, transport: impl Into<AuthenticatorTransport>, ) -> VirtualAuthenticatorOptions
Source§impl VirtualAuthenticatorOptions
impl VirtualAuthenticatorOptions
pub const IDENTIFIER: &'static str = "WebAuthn.VirtualAuthenticatorOptions"
Trait Implementations§
Source§impl Clone for VirtualAuthenticatorOptions
impl Clone for VirtualAuthenticatorOptions
Source§fn clone(&self) -> VirtualAuthenticatorOptions
fn clone(&self) -> VirtualAuthenticatorOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more