pub struct WsSecurityConfigBuilder { /* private fields */ }Expand description
A builder for WsSecurityConfig.
Obtain via WsSecurityConfig::builder().
Implementations§
Source§impl WsSecurityConfigBuilder
impl WsSecurityConfigBuilder
Sourcepub fn include_timestamp(self, include: bool) -> Self
pub fn include_timestamp(self, include: bool) -> Self
Set whether to include a timestamp in the security header.
Sourcepub fn timestamp_ttl(self, ttl: Duration) -> Self
pub fn timestamp_ttl(self, ttl: Duration) -> Self
Set the timestamp TTL (time-to-live).
Sourcepub fn sign_message(self, sign: bool) -> Self
pub fn sign_message(self, sign: bool) -> Self
Set whether to sign the message.
Sourcepub fn elements_to_sign(self, elements: Vec<String>) -> Self
pub fn elements_to_sign(self, elements: Vec<String>) -> Self
Set which XML elements to sign (by local name).
Sourcepub fn signing_certificate(self, cert: Vec<u8>) -> Self
pub fn signing_certificate(self, cert: Vec<u8>) -> Self
Set the signing certificate (PEM-encoded bytes).
Sourcepub fn signing_private_key(self, key: Vec<u8>) -> Self
pub fn signing_private_key(self, key: Vec<u8>) -> Self
Set the signing private key (PEM-encoded bytes).
Sourcepub fn include_certificate(self, include: bool) -> Self
pub fn include_certificate(self, include: bool) -> Self
Set whether to include the certificate in the security header.
Sourcepub fn saml_token_endpoint(self, endpoint: impl Into<String>) -> Self
pub fn saml_token_endpoint(self, endpoint: impl Into<String>) -> Self
Set the SAML token provider endpoint URL.
Sourcepub fn actor(self, actor: impl Into<String>) -> Self
pub fn actor(self, actor: impl Into<String>) -> Self
Set the actor value for delegation scenarios.
Sourcepub fn build(self) -> WsSecurityConfig
pub fn build(self) -> WsSecurityConfig
Build the WsSecurityConfig.
Trait Implementations§
Source§impl Clone for WsSecurityConfigBuilder
impl Clone for WsSecurityConfigBuilder
Source§fn clone(&self) -> WsSecurityConfigBuilder
fn clone(&self) -> WsSecurityConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WsSecurityConfigBuilder
impl Debug for WsSecurityConfigBuilder
Auto Trait Implementations§
impl Freeze for WsSecurityConfigBuilder
impl RefUnwindSafe for WsSecurityConfigBuilder
impl Send for WsSecurityConfigBuilder
impl Sync for WsSecurityConfigBuilder
impl Unpin for WsSecurityConfigBuilder
impl UnsafeUnpin for WsSecurityConfigBuilder
impl UnwindSafe for WsSecurityConfigBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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