pub struct CapabilityTokenDigest { /* private fields */ }Expand description
A versioned capability-token lookup digest.
The digest bytes are not bearer credentials, but their formatting is still
redacted. Construction records only already-computed v1 HMAC bytes; the
domain-separated calculation is provided by
hash_capability_token.
Implementations§
Source§impl CapabilityTokenDigest
impl CapabilityTokenDigest
Sourcepub const fn from_hmac_bytes(key_id: DigestKeyId, bytes: [u8; 32]) -> Self
pub const fn from_hmac_bytes(key_id: DigestKeyId, bytes: [u8; 32]) -> Self
Creates a v1 capability-token digest from its key ID and HMAC bytes.
Sourcepub const fn key_id(self) -> DigestKeyId
pub const fn key_id(self) -> DigestKeyId
Returns the non-secret immutable digest-key identifier.
Trait Implementations§
Source§impl Clone for CapabilityTokenDigest
impl Clone for CapabilityTokenDigest
impl Copy for CapabilityTokenDigest
Source§impl Debug for CapabilityTokenDigest
impl Debug for CapabilityTokenDigest
Source§impl Display for CapabilityTokenDigest
impl Display for CapabilityTokenDigest
impl Eq for CapabilityTokenDigest
Source§impl Hash for CapabilityTokenDigest
impl Hash for CapabilityTokenDigest
Source§impl Ord for CapabilityTokenDigest
impl Ord for CapabilityTokenDigest
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CapabilityTokenDigest
impl PartialEq for CapabilityTokenDigest
Source§impl PartialOrd for CapabilityTokenDigest
impl PartialOrd for CapabilityTokenDigest
impl StructuralPartialEq for CapabilityTokenDigest
Auto Trait Implementations§
impl Freeze for CapabilityTokenDigest
impl RefUnwindSafe for CapabilityTokenDigest
impl Send for CapabilityTokenDigest
impl Sync for CapabilityTokenDigest
impl Unpin for CapabilityTokenDigest
impl UnsafeUnpin for CapabilityTokenDigest
impl UnwindSafe for CapabilityTokenDigest
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