pub struct FapiConfigBuilder { /* private fields */ }Expand description
Builder for FAPI 2.0 Configuration
Implementations§
Source§impl FapiConfigBuilder
impl FapiConfigBuilder
Sourcepub fn request_signing_algorithm(self, alg: Algorithm) -> Self
pub fn request_signing_algorithm(self, alg: Algorithm) -> Self
Set the request signing algorithm (default: PS256).
FAPI 2.0 requires PS256 or ES256.
Sourcepub fn response_signing_algorithm(self, alg: Algorithm) -> Self
pub fn response_signing_algorithm(self, alg: Algorithm) -> Self
Set the response signing algorithm (default: PS256).
Sourcepub fn max_request_age(self, age: i64) -> Self
pub fn max_request_age(self, age: i64) -> Self
Set the maximum allowed age for request objects in seconds (default: 60).
Sourcepub fn require_dpop(self, require: bool) -> Self
pub fn require_dpop(self, require: bool) -> Self
Set whether DPoP is required (default: true).
Sourcepub fn require_mtls(self, require: bool) -> Self
pub fn require_mtls(self, require: bool) -> Self
Set whether mTLS is required (default: true).
Sourcepub fn require_par(self, require: bool) -> Self
pub fn require_par(self, require: bool) -> Self
Set whether PAR is required (default: true).
Sourcepub fn enable_jarm(self, enable: bool) -> Self
pub fn enable_jarm(self, enable: bool) -> Self
Enable or disable JARM (default: true).
Sourcepub fn enhanced_audit(self, enable: bool) -> Self
pub fn enhanced_audit(self, enable: bool) -> Self
Enable or disable enhanced audit logging (default: true).
Sourcepub fn degraded(self) -> Self
pub fn degraded(self) -> Self
Mark this configuration as degraded (for testing/development only).
Sourcepub fn build(self) -> FapiConfig
pub fn build(self) -> FapiConfig
Build the FapiConfig.
Auto Trait Implementations§
impl Freeze for FapiConfigBuilder
impl RefUnwindSafe for FapiConfigBuilder
impl Send for FapiConfigBuilder
impl Sync for FapiConfigBuilder
impl Unpin for FapiConfigBuilder
impl UnsafeUnpin for FapiConfigBuilder
impl UnwindSafe for FapiConfigBuilder
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