pub struct SignedInfo {
pub digest_value: String,
pub timestamp_wssu_id: WSSUId,
}Expand description
XML Signature metadata containing the digest of the signed content.
Fields§
§digest_value: StringBase64-encoded SHA-1 digest of the referenced XML.
timestamp_wssu_id: WSSUIdthe wssu id used for the wssu:Id field from the timestamp, from WSSUId
Implementations§
Source§impl SignedInfo
impl SignedInfo
Sourcepub fn sign_with_private_key(&self, private_key: RsaPrivateKey) -> String
pub fn sign_with_private_key(&self, private_key: RsaPrivateKey) -> String
Signs the canonicalized XML using an RSA private key.
Sourcepub fn sign_with_signing_key(&self, signing_key: &SigningKey<Sha1>) -> String
pub fn sign_with_signing_key(&self, signing_key: &SigningKey<Sha1>) -> String
Signs the canonicalized XML using an existing signing key.
Trait Implementations§
Source§impl Clone for SignedInfo
impl Clone for SignedInfo
Source§fn clone(&self) -> SignedInfo
fn clone(&self) -> SignedInfo
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 SignedInfo
impl Debug for SignedInfo
Auto Trait Implementations§
impl Freeze for SignedInfo
impl RefUnwindSafe for SignedInfo
impl Send for SignedInfo
impl Sync for SignedInfo
impl Unpin for SignedInfo
impl UnwindSafe for SignedInfo
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