pub trait ClientData<E: Serialize> {
// Required methods
fn extra_client_data(&self) -> E;
fn client_data_hash(&self) -> Option<Vec<u8>>;
}
Expand description
A trait describing how client data should be generated during a WebAuthn operation.
Required Methods§
Sourcefn extra_client_data(&self) -> E
fn extra_client_data(&self) -> E
Extra client data to be appended to the automatically generated client data.
Sourcefn client_data_hash(&self) -> Option<Vec<u8>>
fn client_data_hash(&self) -> Option<Vec<u8>>
The hash of the client data to be used in the WebAuthn operation.
Implementations on Foreign Types§
Source§impl ClientData<()> for Option<Vec<u8>>
Backwards compatibility with the previous register
and authenticate
functions
which only took Option<Vec<u8>>
as a client data hash.
impl ClientData<()> for Option<Vec<u8>>
Backwards compatibility with the previous register
and authenticate
functions
which only took Option<Vec<u8>>
as a client data hash.