pub enum RequestKind<'a> {
Bare,
Identity {
spki: &'a [u8],
},
Signed {
spki: &'a [u8],
nonce: &'a [u8],
signature: &'a [u8],
},
}Expand description
A classified incoming Binding request (SPEC.md §14.5). Exhaustive: a fourth shape would be a
wire-format change requiring a version bump (SPEC.md §12).
Every variant borrows directly from the datagram classify_request was given — nothing here
allocates.
Variants§
Bare
No DIG attribute at all — an ordinary, uncredentialed Binding request.
Identity
A DIG-IDENTITY alone, with no NONCE and no DIG-SIGNATURE — the first datagram of the
client’s challenge/response exchange (SPEC.md §14.9 step 2).
Signed
DIG-IDENTITY + NONCE + DIG-SIGNATURE, in that order, with the signature last.
Fields
§
nonce: &'a [u8]The NONCE attribute value EXACTLY as carried (base64url text) — the same bytes
crate::credential::signing_message expects.
Trait Implementations§
Source§impl<'a> Clone for RequestKind<'a>
impl<'a> Clone for RequestKind<'a>
Source§fn clone(&self) -> RequestKind<'a>
fn clone(&self) -> RequestKind<'a>
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 moreimpl<'a> Copy for RequestKind<'a>
Source§impl<'a> Debug for RequestKind<'a>
impl<'a> Debug for RequestKind<'a>
impl<'a> Eq for RequestKind<'a>
Source§impl<'a> PartialEq for RequestKind<'a>
impl<'a> PartialEq for RequestKind<'a>
impl<'a> StructuralPartialEq for RequestKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestKind<'a>
impl<'a> RefUnwindSafe for RequestKind<'a>
impl<'a> Send for RequestKind<'a>
impl<'a> Sync for RequestKind<'a>
impl<'a> Unpin for RequestKind<'a>
impl<'a> UnsafeUnpin for RequestKind<'a>
impl<'a> UnwindSafe for RequestKind<'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