pub struct ExchangedClaims {
pub claims: NhiClaims,
pub av_subject_tokens: Vec<RevocationIdentity>,
pub av_actor_tokens: Vec<RevocationIdentity>,
pub av_delegation_depth: usize,
}Expand description
Signed ancestry travels with exchanged tokens without trusting such claims in upstream NHI tokens. Each entry came from a verified delegation link.
Fields§
§claims: NhiClaimsStandard identity and authorization claims.
av_subject_tokens: Vec<RevocationIdentity>Original identities, leaf first, for JTI and instance revocation.
av_actor_tokens: Vec<RevocationIdentity>The RFC 8693 actor token’s identity, when one was presented, so revoking the actor also revokes every token it obtained.
av_delegation_depth: usizeTotal delegation depth, including parent links removed during exchange.
Methods from Deref<Target = NhiClaims>§
Sourcepub fn scopes_cover(&self, candidate: &NhiClaims) -> bool
pub fn scopes_cover(&self, candidate: &NhiClaims) -> bool
True when candidate’s scopes are a subset of self’s.
Trait Implementations§
Source§impl Clone for ExchangedClaims
impl Clone for ExchangedClaims
Source§fn clone(&self) -> ExchangedClaims
fn clone(&self) -> ExchangedClaims
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 ExchangedClaims
impl Debug for ExchangedClaims
Source§impl Deref for ExchangedClaims
impl Deref for ExchangedClaims
Source§impl<'de> Deserialize<'de> for ExchangedClaims
impl<'de> Deserialize<'de> for ExchangedClaims
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExchangedClaims
impl RefUnwindSafe for ExchangedClaims
impl Send for ExchangedClaims
impl Sync for ExchangedClaims
impl Unpin for ExchangedClaims
impl UnsafeUnpin for ExchangedClaims
impl UnwindSafe for ExchangedClaims
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