pub struct ClientJwtConfigBuilder { /* private fields */ }Expand description
Builder for private key JWT client configuration.
Implementations§
Source§impl ClientJwtConfigBuilder
impl ClientJwtConfigBuilder
Sourcepub fn rs256_only(self) -> Self
pub fn rs256_only(self) -> Self
Restrict signing to RS256 only.
Sourcepub fn algorithms(self, algorithms: Vec<Algorithm>) -> Self
pub fn algorithms(self, algorithms: Vec<Algorithm>) -> Self
Replace the allowed algorithm list.
Sourcepub fn max_jwt_lifetime(self, max_jwt_lifetime: Duration) -> Self
pub fn max_jwt_lifetime(self, max_jwt_lifetime: Duration) -> Self
Set the maximum JWT lifetime.
Sourcepub fn clock_skew(self, clock_skew: Duration) -> Self
pub fn clock_skew(self, clock_skew: Duration) -> Self
Set the clock skew tolerance.
Sourcepub fn build(self) -> ClientJwtConfig
pub fn build(self) -> ClientJwtConfig
Build the client JWT configuration.
Auto Trait Implementations§
impl Freeze for ClientJwtConfigBuilder
impl RefUnwindSafe for ClientJwtConfigBuilder
impl Send for ClientJwtConfigBuilder
impl Sync for ClientJwtConfigBuilder
impl Unpin for ClientJwtConfigBuilder
impl UnsafeUnpin for ClientJwtConfigBuilder
impl UnwindSafe for ClientJwtConfigBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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