pub struct DeviceIdentity {
pub subject: String,
pub device: String,
pub key_thumbprint: String,
pub attributes: Value,
}Expand description
Identity established by a request that passed every step of the verification algorithm.
subject and device come from the attestation; key_thumbprint is recomputed by the
verifier from the request signature’s embedded jwk (it necessarily equals the
attestation’s cnf.jkt — that equality is the binding check — but it is threaded through
separately here to document that this value was derived from the live request, not merely
copied out of the attestation).
Fields§
§subject: StringThe attestation’s sub claim — the authenticated identity.
device: StringThe attestation’s did claim — the device identifier.
key_thumbprint: StringThe RFC 7638 SHA-256 thumbprint of the request-signature’s embedded jwk.
attributes: ValueThe attestation’s att claim — application attributes. Opaque to this crate; surfaced
as-is to the application.
Trait Implementations§
Source§impl Clone for DeviceIdentity
impl Clone for DeviceIdentity
Source§fn clone(&self) -> DeviceIdentity
fn clone(&self) -> DeviceIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceIdentity
impl Debug for DeviceIdentity
impl Eq for DeviceIdentity
Source§impl PartialEq for DeviceIdentity
impl PartialEq for DeviceIdentity
impl StructuralPartialEq for DeviceIdentity
Auto Trait Implementations§
impl Freeze for DeviceIdentity
impl RefUnwindSafe for DeviceIdentity
impl Send for DeviceIdentity
impl Sync for DeviceIdentity
impl Unpin for DeviceIdentity
impl UnsafeUnpin for DeviceIdentity
impl UnwindSafe for DeviceIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more