pub struct Credential {Show 14 fields
pub credential_id: String,
pub is_resident_credential: bool,
pub rp_id: Option<String>,
pub private_key: String,
pub user_handle: Option<String>,
pub sign_count: f64,
pub large_blob: Option<String>,
pub backup_eligibility: Option<bool>,
pub backup_state: Option<bool>,
pub user_name: Option<String>,
pub user_display_name: Option<String>,
pub cmtg_keys: Option<Vec<String>>,
pub active_cmtg_key_index: Option<i64>,
pub generate_cmtg_key_on_next_operation: Option<bool>,
}Fields§
§credential_id: String§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: StringThe ECDSA P-256 private key in PKCS#8 format. (Encoded as a base64 string when passed over JSON)
user_handle: Option<String>An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user. (Encoded as a base64 string when passed over JSON)
sign_count: f64Signature counter. Must be equal to or greater than -1. If -1, the credential won’t have an associated signature counter, and every assertion operation will report a value of 0. See https://w3c.github.io/webauthn/#signature-counter
large_blob: Option<String>The large blob associated with the credential. See https://w3c.github.io/webauthn/#sctn-large-blob-extension (Encoded as a base64 string when passed over JSON)
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
cmtg_keys: Option<Vec<String>>The CMTG keys associated with the credential.
active_cmtg_key_index: Option<i64>The 0-based index of the active key in cmtgKeys.
generate_cmtg_key_on_next_operation: Option<bool>If true, the authenticator will generate a new CMTG key on the next operation.