pub struct Authentic<'a> {
pub kid: &'a str,
pub policy: &'a KeyPolicy,
pub at_ms: i64,
}Expand description
A message whose signature holds, before any freshness policy is applied.
The cryptographic half of verify, exposed so a caller with a different
time policy (the command envelope, which bounds the future side by a clock
allowance rather than by the key’s max_age) can apply its own without
re-implementing key lookup and signature checking.
Fields§
§kid: &'a str§policy: &'a KeyPolicy§at_ms: i64The signing time the signature covers, milliseconds since the epoch.
Trait Implementations§
impl<'a> Eq for Authentic<'a>
impl<'a> StructuralPartialEq for Authentic<'a>
Auto Trait Implementations§
impl<'a> Freeze for Authentic<'a>
impl<'a> RefUnwindSafe for Authentic<'a>
impl<'a> Send for Authentic<'a>
impl<'a> Sync for Authentic<'a>
impl<'a> Unpin for Authentic<'a>
impl<'a> UnsafeUnpin for Authentic<'a>
impl<'a> UnwindSafe for Authentic<'a>
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.