pub struct VerifiedDpopBinding(/* private fields */);Expand description
Evidence that the surrounding OAuth resource server verified a DPoP proof
and bound this authorization to its JWK thumbprint (jkt).
This module intentionally does not parse or verify DPoP JWTs: that belongs
to the OAuth boundary (services::oauth::dpop) where the request method,
URI, nonce, and replay cache are available. Requiring this value makes the
dependency explicit and ensures a translation result is sender-bound rather
than usable as a bearer grant.
Implementations§
Source§impl VerifiedDpopBinding
impl VerifiedDpopBinding
Sourcepub fn from_verified_jkt(jkt: impl Into<String>) -> Result<Self>
pub fn from_verified_jkt(jkt: impl Into<String>) -> Result<Self>
Construct from a jkt returned by a successful DPoP verifier.
Callers MUST NOT construct this from an unverified request header; the
verifier is responsible for signature, htm/htu, nonce, and replay
validation. We reject empty/whitespace values so a missing proof cannot
be represented as a binding.
Trait Implementations§
Source§impl Clone for VerifiedDpopBinding
impl Clone for VerifiedDpopBinding
Source§fn clone(&self) -> VerifiedDpopBinding
fn clone(&self) -> VerifiedDpopBinding
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 VerifiedDpopBinding
impl Debug for VerifiedDpopBinding
Source§impl PartialEq for VerifiedDpopBinding
impl PartialEq for VerifiedDpopBinding
Source§fn eq(&self, other: &VerifiedDpopBinding) -> bool
fn eq(&self, other: &VerifiedDpopBinding) -> bool
self and other values to be equal, and is used by ==.impl Eq for VerifiedDpopBinding
impl StructuralPartialEq for VerifiedDpopBinding
Auto Trait Implementations§
impl Freeze for VerifiedDpopBinding
impl RefUnwindSafe for VerifiedDpopBinding
impl Send for VerifiedDpopBinding
impl Sync for VerifiedDpopBinding
impl Unpin for VerifiedDpopBinding
impl UnsafeUnpin for VerifiedDpopBinding
impl UnwindSafe for VerifiedDpopBinding
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
key and return true if they are equal.§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<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