pub struct WsSecurityClient { /* private fields */ }
Expand description
WS-Security client for generating secure SOAP headers
Implementations§
Source§impl WsSecurityClient
impl WsSecurityClient
Sourcepub fn new(config: WsSecurityConfig) -> Self
pub fn new(config: WsSecurityConfig) -> Self
Create a new WS-Security client
Sourcepub fn create_username_token_header(
&self,
username: &str,
password: Option<&str>,
password_type: PasswordType,
) -> Result<WsSecurityHeader>
pub fn create_username_token_header( &self, username: &str, password: Option<&str>, password_type: PasswordType, ) -> Result<WsSecurityHeader>
Create WS-Security header with UsernameToken
Sourcepub fn create_certificate_header(
&self,
certificate: &[u8],
) -> Result<WsSecurityHeader>
pub fn create_certificate_header( &self, certificate: &[u8], ) -> Result<WsSecurityHeader>
Create WS-Security header with X.509 certificate
Sourcepub fn create_saml_header(
&self,
assertion: SamlAssertion,
) -> Result<WsSecurityHeader>
pub fn create_saml_header( &self, assertion: SamlAssertion, ) -> Result<WsSecurityHeader>
Create WS-Security header with SAML assertion
Sourcepub fn header_to_xml(&self, header: &WsSecurityHeader) -> Result<String>
pub fn header_to_xml(&self, header: &WsSecurityHeader) -> Result<String>
Convert WS-Security header to XML
Auto Trait Implementations§
impl Freeze for WsSecurityClient
impl RefUnwindSafe for WsSecurityClient
impl Send for WsSecurityClient
impl Sync for WsSecurityClient
impl Unpin for WsSecurityClient
impl UnwindSafe for WsSecurityClient
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