pub struct DpopVerifier { /* private fields */ }Expand description
Main DPoP verifier with builder pattern
Implementations§
Source§impl DpopVerifier
impl DpopVerifier
Sourcepub fn with_max_age_seconds(self, max_age_seconds: i64) -> Self
pub fn with_max_age_seconds(self, max_age_seconds: i64) -> Self
Set the maximum age for DPoP proofs (in seconds)
Sourcepub fn with_future_skew_seconds(self, future_skew_seconds: i64) -> Self
pub fn with_future_skew_seconds(self, future_skew_seconds: i64) -> Self
Set the future skew tolerance (in seconds)
Sourcepub fn with_nonce_mode(self, nonce_mode: NonceMode) -> Self
pub fn with_nonce_mode(self, nonce_mode: NonceMode) -> Self
Set the nonce mode
Sourcepub fn with_client_binding(self, client_id: impl Into<String>) -> Self
pub fn with_client_binding(self, client_id: impl Into<String>) -> Self
Bind verification to a specific client identifier
Sourcepub fn without_client_binding(self) -> Self
pub fn without_client_binding(self) -> Self
Remove any configured client binding
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DpopVerifier
impl RefUnwindSafe for DpopVerifier
impl Send for DpopVerifier
impl Sync for DpopVerifier
impl Unpin for DpopVerifier
impl UnwindSafe for DpopVerifier
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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