Skip to main content

WebAuthnClient

Struct WebAuthnClient 

Source
pub struct WebAuthnClient { /* private fields */ }
Expand description

Client for WebAuthn domain commands.

Implementations§

Source§

impl WebAuthnClient

Source

pub async fn enable( &self, params: EnableParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Enable the WebAuthn domain and start intercepting credential storage and retrieval with a virtual authenticator.

Source

pub async fn disable(&self, session_id: Option<&str>) -> Result<Value, CdpError>

Disable the WebAuthn domain.

Source

pub async fn add_virtual_authenticator( &self, params: AddVirtualAuthenticatorParams, session_id: Option<&str>, ) -> Result<AddVirtualAuthenticatorReturns, CdpError>

Creates and adds a virtual authenticator.

Source

pub async fn set_response_override_bits( &self, params: SetResponseOverrideBitsParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Resets parameters isBogusSignature, isBadUV, isBadUP to false if they are not present.

Source

pub async fn remove_virtual_authenticator( &self, params: RemoveVirtualAuthenticatorParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Removes the given authenticator.

Source

pub async fn add_credential( &self, params: AddCredentialParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Adds the credential to the specified authenticator.

Source

pub async fn get_credential( &self, params: GetCredentialParams, session_id: Option<&str>, ) -> Result<GetCredentialReturns, CdpError>

Returns a single credential stored in the given virtual authenticator that matches the credential ID.

Source

pub async fn get_credentials( &self, params: GetCredentialsParams, session_id: Option<&str>, ) -> Result<GetCredentialsReturns, CdpError>

Returns all the credentials stored in the given virtual authenticator.

Source

pub async fn remove_credential( &self, params: RemoveCredentialParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Removes a credential from the authenticator.

Source

pub async fn clear_credentials( &self, params: ClearCredentialsParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Clears all the credentials from the specified device.

Source

pub async fn set_user_verified( &self, params: SetUserVerifiedParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Sets whether User Verification succeeds or fails for an authenticator. The default is true.

Source

pub async fn set_automatic_presence_simulation( &self, params: SetAutomaticPresenceSimulationParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

Sets whether tests of user presence will succeed immediately (if true) or fail to resolve (if false) for an authenticator. The default is true.

Source

pub async fn set_credential_properties( &self, params: SetCredentialPropertiesParams, session_id: Option<&str>, ) -> Result<Value, CdpError>

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> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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, 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

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more