pub struct Credential {
pub credential_id: Binary,
pub is_resident_credential: bool,
pub rp_id: Option<String>,
pub private_key: Binary,
pub user_handle: Option<Binary>,
pub sign_count: i64,
pub large_blob: Option<Binary>,
pub backup_eligibility: Option<bool>,
pub backup_state: Option<bool>,
pub user_name: Option<String>,
pub user_display_name: Option<String>,
}
Fields§
§credential_id: Binary
§is_resident_credential: bool
§rp_id: Option<String>
Relying Party ID the credential is scoped to. Must be set when adding a credential.
private_key: Binary
The ECDSA P-256 private key in PKCS#8 format.
user_handle: Option<Binary>
An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.
sign_count: i64
Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter
large_blob: Option<Binary>
The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension
backup_eligibility: Option<bool>
Assertions returned by this credential will have the backup eligibility (BE) flag set to this value. Defaults to the authenticator’s defaultBackupEligibility value.
backup_state: Option<bool>
Assertions returned by this credential will have the backup state (BS) flag set to this value. Defaults to the authenticator’s defaultBackupState value.
user_name: Option<String>
The credential’s user.name property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialentity-name
user_display_name: Option<String>
The credential’s user.displayName property. Equivalent to empty if not set. https://w3c.github.io/webauthn/#dom-publickeycredentialuserentity-displayname
Implementations§
Source§impl Credential
impl Credential
Source§impl Credential
impl Credential
pub fn builder() -> CredentialBuilder
Source§impl Credential
impl Credential
pub const IDENTIFIER: &'static str = "WebAuthn.Credential"
Trait Implementations§
Source§impl Clone for Credential
impl Clone for Credential
Source§fn clone(&self) -> Credential
fn clone(&self) -> Credential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more