pub struct AdvancedJarmConfigBuilder { /* private fields */ }Expand description
Builder for AdvancedJarmConfig.
Implementations§
Source§impl AdvancedJarmConfigBuilder
impl AdvancedJarmConfigBuilder
Sourcepub fn supported_algorithms(self, algos: Vec<Algorithm>) -> Self
pub fn supported_algorithms(self, algos: Vec<Algorithm>) -> Self
Set supported signing algorithms.
Sourcepub fn default_token_expiry(self, expiry: Duration) -> Self
pub fn default_token_expiry(self, expiry: Duration) -> Self
Set default token expiry.
Sourcepub fn enable_jwe_encryption(self, enable: bool) -> Self
pub fn enable_jwe_encryption(self, enable: bool) -> Self
Set whether JWE encryption is enabled.
Sourcepub fn supported_delivery_modes(self, modes: Vec<JarmDeliveryMode>) -> Self
pub fn supported_delivery_modes(self, modes: Vec<JarmDeliveryMode>) -> Self
Set supported delivery modes.
Sourcepub fn enable_custom_claims(self, enable: bool) -> Self
pub fn enable_custom_claims(self, enable: bool) -> Self
Set whether custom claims are allowed.
Sourcepub fn max_custom_claims(self, max: usize) -> Self
pub fn max_custom_claims(self, max: usize) -> Self
Set maximum custom claims count.
Sourcepub fn enable_response_validation(self, enable: bool) -> Self
pub fn enable_response_validation(self, enable: bool) -> Self
Set whether response validation is enabled.
Sourcepub fn jarm_issuer(self, issuer: impl Into<String>) -> Self
pub fn jarm_issuer(self, issuer: impl Into<String>) -> Self
Set the JARM issuer URI.
Sourcepub fn enable_audit_logging(self, enable: bool) -> Self
pub fn enable_audit_logging(self, enable: bool) -> Self
Set whether audit logging is enabled.
Sourcepub fn jwe_content_encryption(self, enc: impl Into<String>) -> Self
pub fn jwe_content_encryption(self, enc: impl Into<String>) -> Self
Set the JWE content encryption algorithm.
Sourcepub fn jwe_algorithm(self, alg: impl Into<String>) -> Self
pub fn jwe_algorithm(self, alg: impl Into<String>) -> Self
Set the JWE key management algorithm.
Sourcepub fn rsa_private_key_pem(self, pem: impl Into<String>) -> Self
pub fn rsa_private_key_pem(self, pem: impl Into<String>) -> Self
Set the server’s RSA private key (PEM).
Sourcepub fn rsa_public_key_pem(self, pem: impl Into<String>) -> Self
pub fn rsa_public_key_pem(self, pem: impl Into<String>) -> Self
Set the server’s RSA public key (PEM).
Sourcepub fn jwe_recipient_public_key_pem(self, pem: impl Into<String>) -> Self
pub fn jwe_recipient_public_key_pem(self, pem: impl Into<String>) -> Self
Set the recipient’s RSA public key (PEM).
Sourcepub fn jwe_recipient_private_key_pem(self, pem: impl Into<String>) -> Self
pub fn jwe_recipient_private_key_pem(self, pem: impl Into<String>) -> Self
Set the recipient’s RSA private key (PEM).
Sourcepub fn build(self) -> AdvancedJarmConfig
pub fn build(self) -> AdvancedJarmConfig
Build the AdvancedJarmConfig.
Auto Trait Implementations§
impl Freeze for AdvancedJarmConfigBuilder
impl RefUnwindSafe for AdvancedJarmConfigBuilder
impl Send for AdvancedJarmConfigBuilder
impl Sync for AdvancedJarmConfigBuilder
impl Unpin for AdvancedJarmConfigBuilder
impl UnsafeUnpin for AdvancedJarmConfigBuilder
impl UnwindSafe for AdvancedJarmConfigBuilder
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