pub struct Security<'a> {
pub timestamp: Timestamp,
pub binary_security_token: BinarySecurityToken<'a>,
pub signed_info: SignedInfo,
pub signature: String,
}Expand description
Represents a complete WS-Security SOAP header.
Fields§
§timestamp: TimestampTimestamp defining the message validity window.
binary_security_token: BinarySecurityToken<'a>Base64-encoded X.509 certificate.
signed_info: SignedInfoXML Signature metadata referencing the timestamp.
signature: StringBase64-encoded RSA signature value.
Implementations§
Source§impl<'a> Security<'a>
impl<'a> Security<'a>
Sourcepub fn new_with_private_key(
binary_security_token: &'a str,
private_key: RsaPrivateKey,
) -> Self
pub fn new_with_private_key( binary_security_token: &'a str, private_key: RsaPrivateKey, ) -> Self
Constructs a WS-Security header using an RSA private key.
Sourcepub fn new_with_signing_key(
binary_security_token: &'a str,
signing_key: &SigningKey<Sha1>,
) -> Self
pub fn new_with_signing_key( binary_security_token: &'a str, signing_key: &SigningKey<Sha1>, ) -> Self
Constructs a WS-Security header using a preconfigured signing key.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Security<'a>
impl<'a> RefUnwindSafe for Security<'a>
impl<'a> Send for Security<'a>
impl<'a> Sync for Security<'a>
impl<'a> Unpin for Security<'a>
impl<'a> UnwindSafe for Security<'a>
Blanket Implementations§
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