pub struct VerifiedTokenScope { /* private fields */ }Expand description
A verified, sender-bound access-token scope cached for one 9P attach.
This type intentionally contains only the deny-only token facts needed on
the hot path. Signature/expiry/DPoP verification happens in the
AttachAuthenticator before constructing it; UCAN chain validation never
runs per operation. The object label is not token-supplied: it is passed
to Self::authorizes by the reference monitor after trusted resolution.
Implementations§
Source§impl VerifiedTokenScope
impl VerifiedTokenScope
Sourcepub fn from_verified_token(
label_ceiling: SecurityLabel,
operations: impl Into<Arc<[Action]>>,
valid_until: Instant,
) -> Self
pub fn from_verified_token( label_ceiling: SecurityLabel, operations: impl Into<Arc<[Action]>>, valid_until: Instant, ) -> Self
Build the local representation of an access token that has already had its signature, sender binding, and expiry verified at attach time.
Callers must not derive these values from a UCAN/caveat or a caller-supplied label. The monitor independently resolves the object label from the mounted object’s manifest/genesis source.
Sourcepub fn label_ceiling(&self) -> SecurityLabel
pub fn label_ceiling(&self) -> SecurityLabel
The token’s label ceiling, for diagnostics and application audit code.
Token gate: unexpired, exact operation membership, and object label no more restrictive than the verified token’s ceiling.
Trait Implementations§
Source§impl Clone for VerifiedTokenScope
impl Clone for VerifiedTokenScope
Source§fn clone(&self) -> VerifiedTokenScope
fn clone(&self) -> VerifiedTokenScope
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifiedTokenScope
impl Debug for VerifiedTokenScope
Source§impl PartialEq for VerifiedTokenScope
impl PartialEq for VerifiedTokenScope
Source§fn eq(&self, other: &VerifiedTokenScope) -> bool
fn eq(&self, other: &VerifiedTokenScope) -> bool
self and other values to be equal, and is used by ==.impl Eq for VerifiedTokenScope
impl StructuralPartialEq for VerifiedTokenScope
Auto Trait Implementations§
impl Freeze for VerifiedTokenScope
impl RefUnwindSafe for VerifiedTokenScope
impl Send for VerifiedTokenScope
impl Sync for VerifiedTokenScope
impl Unpin for VerifiedTokenScope
impl UnsafeUnpin for VerifiedTokenScope
impl UnwindSafe for VerifiedTokenScope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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