pub struct DeviceAuthnKey {
pub attestation: Option<Box<DeviceAuthnAttestation>>,
pub client_key_id: Option<String>,
pub created_at: Option<String>,
pub device_name: Option<String>,
pub device_type: Option<DeviceType>,
pub pin: Option<Box<PinConfig>>,
pub public_key: Option<Vec<u8>>,
pub relaxed_attestation_expires_at: Option<String>,
pub state: Option<KeyState>,
pub user_verification: Option<UserVerification>,
pub version: Option<i64>,
}Expand description
DeviceAuthnKey : Represents a hardware-backed signing key enrolled from a mobile device. The private key resides inside the device and never exists on the server. To list the identity’s enrolled keys, fetch a settings flow: each key’s remove button (a ui.nodes entry named deviceauthn_remove in group deviceauthn) carries the key, with its PIN state redacted, in the node label’s context.
Fields§
§attestation: Option<Box<DeviceAuthnAttestation>>§client_key_id: Option<String>The key’s stable id, unique per identity. Submit it as the client_key_id when logging in with the key, deleting it, or rotating its pin_secret. The device can also compute the id without reading it back from the server: it is the lowercase-hex SHA-256 of public_key (the key’s PKIX, ASN.1 DER encoding). Keys enrolled before the server derived the id keep their original client-chosen value, so prefer reading this field over recomputing it for older keys.
created_at: Option<String>When the key was enrolled. Only used for troubleshooting and UI.
device_name: Option<String>A human-readable name for the device, helping the user tell this key apart from others.
device_type: Option<DeviceType>§pin: Option<Box<PinConfig>>§public_key: Option<Vec<u8>>The device’s public key (an elliptic-curve key on P-224, P-256, P-384, or P-521 in version 1) in PKIX, ASN.1 DER (SubjectPublicKeyInfo) form, base64-encoded. Signatures are verified against this key.
relaxed_attestation_expires_at: Option<String>Set only when the key’s attestation chain was accepted under relaxed rules (software roots, expired certificates, software security level) rather than strict hardware attestation. Such keys are refused at login after this time, or immediately once relaxed attestation is turned off. Absent for hardware-attested keys that pass strict validation.
state: Option<KeyState>§user_verification: Option<UserVerification>§version: Option<i64>The cryptography version of the key. Version 1 uses ECDSA with SHA-256 on an elliptic curve (P-224, P-256, P-384, or P-521); further versions are reserved for future signature suites.
Implementations§
Source§impl DeviceAuthnKey
impl DeviceAuthnKey
Sourcepub fn new() -> DeviceAuthnKey
pub fn new() -> DeviceAuthnKey
Represents a hardware-backed signing key enrolled from a mobile device. The private key resides inside the device and never exists on the server. To list the identity’s enrolled keys, fetch a settings flow: each key’s remove button (a ui.nodes entry named deviceauthn_remove in group deviceauthn) carries the key, with its PIN state redacted, in the node label’s context.
Trait Implementations§
Source§impl Clone for DeviceAuthnKey
impl Clone for DeviceAuthnKey
Source§fn clone(&self) -> DeviceAuthnKey
fn clone(&self) -> DeviceAuthnKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more