pub struct SoftTokenFile { /* private fields */ }
Available on crate feature
softtoken
only.Expand description
SoftToken which is read form, and automatically saved to a File when dropped.
§Warning
SoftTokenFile is intended for testing purposes only, and is not intended for production or long-term usage.
SoftTokenFile stores private key material insecurely with no protection of any kind. Its serialisation format is subject to change in the future without warning, which may prevent loading or saving SoftTokenFiles created with other versions of this code.
Implementations§
Source§impl SoftTokenFile
impl SoftTokenFile
Trait Implementations§
Source§impl AsRef<SoftToken> for SoftTokenFile
impl AsRef<SoftToken> for SoftTokenFile
Source§impl AuthenticatorBackendHashedClientData for SoftTokenFile
impl AuthenticatorBackendHashedClientData for SoftTokenFile
fn perform_register( &mut self, client_data_hash: Vec<u8>, options: PublicKeyCredentialCreationOptions, timeout_ms: u32, ) -> Result<RegisterPublicKeyCredential, WebauthnCError>
fn perform_auth( &mut self, client_data_hash: Vec<u8>, options: PublicKeyCredentialRequestOptions, timeout_ms: u32, ) -> Result<PublicKeyCredential, WebauthnCError>
Source§impl Drop for SoftTokenFile
Drops the SoftTokenFile, automatically saving it to disk.
impl Drop for SoftTokenFile
Drops the SoftTokenFile, automatically saving it to disk.
Source§impl TryFrom<SoftTokenFile> for File
Extracts the File handle from this SoftTokenFile, dropping (and saving)
the SoftTokenFile in the process.
impl TryFrom<SoftTokenFile> for File
Extracts the File handle from this SoftTokenFile, dropping (and saving) the SoftTokenFile in the process.
Source§type Error = WebauthnCError
type Error = WebauthnCError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for SoftTokenFile
impl RefUnwindSafe for SoftTokenFile
impl Send for SoftTokenFile
impl Sync for SoftTokenFile
impl Unpin for SoftTokenFile
impl UnwindSafe for SoftTokenFile
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> AuthenticatorBackend for Twhere
T: AuthenticatorBackendHashedClientData,
impl<T> AuthenticatorBackend for Twhere
T: AuthenticatorBackendHashedClientData,
fn perform_register( &mut self, origin: Url, options: PublicKeyCredentialCreationOptions, timeout_ms: u32, ) -> Result<RegisterPublicKeyCredential, WebauthnCError>
fn perform_auth( &mut self, origin: Url, options: PublicKeyCredentialRequestOptions, timeout_ms: u32, ) -> Result<PublicKeyCredential, WebauthnCError>
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