pub struct AuthorizedSessionClaims {
pub issuer: String,
pub key_id: String,
pub session_id: String,
pub authorization_epoch: u64,
pub subject: SessionSubject,
pub scopes: Vec<SessionScope>,
pub issued_ms: u64,
pub expires_ms: u64,
}Expand description
Claims signed into a bearer whose current authorization lives in State.
Signature verification proves only that these claims came from the
session signer and remain inside their time window. An admission boundary
must additionally read the session_id and credential-root epoch from
State and fail closed unless both still authorize this bearer.
Fields§
§issuer: StringStable signing-role issuer.
key_id: StringExact key identity selected from the session trust set.
session_id: StringStable identifier of the bearer record in State.
Credential-root epoch recorded when State minted the bearer.
subject: SessionSubjectCredential root and its current persona resolution.
scopes: Vec<SessionScope>Independently checked capabilities.
issued_ms: u64Writer-attested mint time.
expires_ms: u64Natural expiry; durable revocation may refuse it earlier.
Implementations§
Source§impl AuthorizedSessionClaims
impl AuthorizedSessionClaims
Sourcepub fn has_scope(&self, scope: SessionScope) -> bool
pub fn has_scope(&self, scope: SessionScope) -> bool
Whether this bearer carries scope.
Trait Implementations§
Source§impl Clone for AuthorizedSessionClaims
impl Clone for AuthorizedSessionClaims
Source§fn clone(&self) -> AuthorizedSessionClaims
fn clone(&self) -> AuthorizedSessionClaims
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 AuthorizedSessionClaims
impl Debug for AuthorizedSessionClaims
impl Eq for AuthorizedSessionClaims
Source§impl PartialEq for AuthorizedSessionClaims
impl PartialEq for AuthorizedSessionClaims
impl StructuralPartialEq for AuthorizedSessionClaims
Auto Trait Implementations§
impl Freeze for AuthorizedSessionClaims
impl RefUnwindSafe for AuthorizedSessionClaims
impl Send for AuthorizedSessionClaims
impl Sync for AuthorizedSessionClaims
impl Unpin for AuthorizedSessionClaims
impl UnsafeUnpin for AuthorizedSessionClaims
impl UnwindSafe for AuthorizedSessionClaims
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more