pub enum PresentationBinding {
Challenge {
nonce: Vec<u8>,
},
Ttl {
nonce: Vec<u8>,
not_after: DateTime<Utc>,
},
}Expand description
The presentation binding mode carried in a PresentationEnvelope.
Selects how the nonce in the signed (cred-SAID || audience || nonce) is judged:
a verifier-issued challenge (single-use, interactive) or a self-asserted TTL window
(non-interactive, with the documented within-TTL same-audience replay residual).
Variants§
Challenge
Interactive challenge-response: the nonce is the verifier-issued challenge the
subject signed over. The verifier accepts it once (the session consumes it).
Ttl
Non-interactive: the nonce is a subject-chosen value bound to a short TTL.
Valid while now < not_after. Carries the within-TTL replay residual.
Trait Implementations§
Source§impl Clone for PresentationBinding
impl Clone for PresentationBinding
Source§fn clone(&self) -> PresentationBinding
fn clone(&self) -> PresentationBinding
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 PresentationBinding
impl Debug for PresentationBinding
impl Eq for PresentationBinding
Source§impl PartialEq for PresentationBinding
impl PartialEq for PresentationBinding
Source§fn eq(&self, other: &PresentationBinding) -> bool
fn eq(&self, other: &PresentationBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresentationBinding
Auto Trait Implementations§
impl Freeze for PresentationBinding
impl RefUnwindSafe for PresentationBinding
impl Send for PresentationBinding
impl Sync for PresentationBinding
impl Unpin for PresentationBinding
impl UnsafeUnpin for PresentationBinding
impl UnwindSafe for PresentationBinding
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
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.