AuthenticatorOptions

Struct AuthenticatorOptions 

Source
pub struct AuthenticatorOptions {
    pub rk: bool,
    pub up: bool,
    pub uv: Option<bool>,
    pub plat: bool,
    pub client_pin: Option<bool>,
    pub pin_uv_auth_token: Option<bool>,
    pub cred_mgmt: Option<bool>,
    pub bio_enroll: Option<bool>,
    pub large_blobs: Option<bool>,
    pub ep: Option<bool>,
    pub always_uv: Option<bool>,
    pub make_cred_uv_not_required: Option<bool>,
}
Expand description

Authenticator options for controlling device capabilities

Fields§

§rk: bool

Resident key (discoverable credentials) support

§up: bool

User presence capable

§uv: Option<bool>

User verification capability

§plat: bool

Platform device (cannot be removed)

§client_pin: Option<bool>

Client PIN capability. When Some(true) and UV is available, the browser/client may defer verification to the authenticator instead of prompting the user locally.

§pin_uv_auth_token: Option<bool>

PIN/UV auth token support

§cred_mgmt: Option<bool>

Credential management support

§bio_enroll: Option<bool>

Biometric enrollment support

§large_blobs: Option<bool>

Large blobs support

§ep: Option<bool>

Enterprise attestation

§always_uv: Option<bool>

Always require user verification

§make_cred_uv_not_required: Option<bool>

Make credential without UV (makeCredUvNotRqd)

When true, indicates that the authenticator can create credentials without performing UV when UV is not required by the relying party. This provides more flexible UV behavior for testing.

Implementations§

Source§

impl AuthenticatorOptions

Source

pub fn new() -> Self

Create new options with default values

Source

pub fn with_resident_keys(self, enabled: bool) -> Self

Set resident key support

Source

pub fn with_user_presence(self, enabled: bool) -> Self

Set user presence capability

Source

pub fn with_user_verification(self, state: Option<bool>) -> Self

Set user verification capability

Source

pub fn with_platform_device(self, is_platform: bool) -> Self

Set platform device flag

Source

pub fn with_client_pin(self, state: Option<bool>) -> Self

Set client PIN capability

Source

pub fn with_pin_uv_auth_token(self, state: Option<bool>) -> Self

Set PIN/UV auth token support

Source

pub fn with_credential_management(self, state: Option<bool>) -> Self

Set credential management support

Source

pub fn with_biometric_enrollment(self, state: Option<bool>) -> Self

Set biometric enrollment support

Source

pub fn with_large_blobs(self, state: Option<bool>) -> Self

Set large blobs support

Source

pub fn with_enterprise_attestation(self, state: Option<bool>) -> Self

Set enterprise attestation support

Source

pub fn with_always_uv(self, state: Option<bool>) -> Self

Set always require user verification

Source

pub fn with_make_cred_uv_not_required(self, state: Option<bool>) -> Self

Set make credential without UV support

Trait Implementations§

Source§

impl Clone for AuthenticatorOptions

Source§

fn clone(&self) -> AuthenticatorOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AuthenticatorOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for AuthenticatorOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V