Struct webauthn_rs_core::interface::CredentialV3
source · [−]pub struct CredentialV3 {
pub cred_id: Vec<u8>,
pub cred: COSEKey,
pub counter: u32,
pub verified: bool,
pub registration_policy: UserVerificationPolicy,
}Expand description
A legacy serialisation from version 3 of Webauthn RS. Only useful for migrations.
Fields
cred_id: Vec<u8>The ID of this credential.
cred: COSEKeyThe public key of this credential
counter: u32The counter for this credential
verified: boolDuring registration, if this credential was verified then this is true. If not it is false. This is based on the policy at the time of registration of the credential.
This is a deviation from the Webauthn specification, because it clarifies the user experience of the credentials to UV being a per-credential attribute, rather than a per-authentication ceremony attribute. For example it can be surprising to register a credential as un-verified but then to use verification with it in the future.
registration_policy: UserVerificationPolicyDuring registration, the policy that was requested from this credential. This is used to understand if the how the verified component interacts with the device, IE an always verified authenticator vs one that can dynamically request it.
Trait Implementations
sourceimpl Clone for CredentialV3
impl Clone for CredentialV3
sourcefn clone(&self) -> CredentialV3
fn clone(&self) -> CredentialV3
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more