pub enum TrustLevel {
None,
SelfAttested,
BasicAtt,
AttCa,
}Expand description
What a verified attestation proves about the credential’s provenance.
Ordered from weakest to strongest. See the module docs for the exact
semantics — in particular TrustLevel::BasicAtt chains are not
anchored to a configured trust anchor and must be treated as
TrustLevel::SelfAttested by policy.
Variants§
None
No attestation claim (none format): key possession only.
SelfAttested
The credential key itself signed the statement (packed self-attestation): key possession only.
BasicAtt
A syntactically valid, internally consistent certificate chain rooted
at a self-signed certificate that is not an RP-configured trust
anchor. Equivalent in trust to TrustLevel::SelfAttested; always
accompanied by warnings::UNANCHORED_CHAIN.
AttCa
The chain terminates at an RP-configured trust anchor: real device provenance (AttCA / basic attestation with a trusted root).
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TrustLevel
Source§impl Debug for TrustLevel
impl Debug for TrustLevel
impl Eq for TrustLevel
Source§impl Ord for TrustLevel
impl Ord for TrustLevel
Source§fn cmp(&self, other: &TrustLevel) -> Ordering
fn cmp(&self, other: &TrustLevel) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
Source§impl Serialize for TrustLevel
Available on crate feature serde only.
impl Serialize for TrustLevel
serde only.