pub struct WebAuthnAssertionResponse { /* private fields */ }Implementations§
Source§impl WebAuthnAssertionResponse
impl WebAuthnAssertionResponse
Sourcepub fn with_authenticator_data(self, data: impl Into<String>) -> Self
pub fn with_authenticator_data(self, data: impl Into<String>) -> Self
Returns a new response with the provided authenticator data encoded as base64url.
Mirrors the helpers on the JS MultiFactorAssertionImpl in
packages/auth/src/mfa/mfa_assertion.ts that expose mutators for the browser payload.
Sourcepub fn with_signature(self, signature: impl Into<String>) -> Self
pub fn with_signature(self, signature: impl Into<String>) -> Self
Returns a new response with the provided signature encoded as base64url.
Sourcepub fn with_user_handle(self, user_handle: impl Into<Option<String>>) -> Self
pub fn with_user_handle(self, user_handle: impl Into<Option<String>>) -> Self
Returns a new response with the provided optional user handle.
pub fn credential_id(&self) -> Option<&str>
pub fn client_data_json(&self) -> Option<&str>
Sourcepub fn authenticator_data(&self) -> Option<&str>
pub fn authenticator_data(&self) -> Option<&str>
Returns the authenticator data associated with the assertion response.
Sourcepub fn signature(&self) -> Option<&str>
pub fn signature(&self) -> Option<&str>
Returns the raw signature produced by the authenticator, base64url encoded.
Sourcepub fn user_handle(&self) -> Option<&str>
pub fn user_handle(&self) -> Option<&str>
Returns the optional user handle provided by the authenticator.
pub fn as_raw(&self) -> &Value
pub fn into_raw(self) -> Value
Trait Implementations§
Source§impl Clone for WebAuthnAssertionResponse
impl Clone for WebAuthnAssertionResponse
Source§fn clone(&self) -> WebAuthnAssertionResponse
fn clone(&self) -> WebAuthnAssertionResponse
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 WebAuthnAssertionResponse
impl Debug for WebAuthnAssertionResponse
Auto Trait Implementations§
impl Freeze for WebAuthnAssertionResponse
impl RefUnwindSafe for WebAuthnAssertionResponse
impl Send for WebAuthnAssertionResponse
impl Sync for WebAuthnAssertionResponse
impl Unpin for WebAuthnAssertionResponse
impl UnwindSafe for WebAuthnAssertionResponse
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