pub struct X509DigestKeyInfoWriter { /* private fields */ }Expand description
Writes an XMLDSig 1.1 X509Digest selector for the signing certificate.
Implementations§
Source§impl X509DigestKeyInfoWriter
impl X509DigestKeyInfoWriter
Sourcepub fn from_der(
certificate_der: &[u8],
digest_algorithm: DigestAlgorithm,
) -> Result<Self, KeyInfoWriteError>
pub fn from_der( certificate_der: &[u8], digest_algorithm: DigestAlgorithm, ) -> Result<Self, KeyInfoWriteError>
Validate and retain a DER certificate and selector digest algorithm.
Sourcepub fn from_pem(
certificate_pem: &str,
digest_algorithm: DigestAlgorithm,
) -> Result<Self, KeyInfoWriteError>
pub fn from_pem( certificate_pem: &str, digest_algorithm: DigestAlgorithm, ) -> Result<Self, KeyInfoWriteError>
Parse a PEM certificate and retain its selector digest algorithm.
Trait Implementations§
Source§impl KeyInfoWriter for X509DigestKeyInfoWriter
impl KeyInfoWriter for X509DigestKeyInfoWriter
Source§fn write_key_info(
&self,
signing_key: &dyn SigningKey,
) -> Result<String, KeyInfoWriteError>
fn write_key_info( &self, signing_key: &dyn SigningKey, ) -> Result<String, KeyInfoWriteError>
Return XML child content for the direct
<Signature>/<KeyInfo> element.Source§fn write_key_info_with_provider(
&self,
signing_key: &dyn SigningKey,
provider: &dyn CryptoProvider,
) -> Result<String, KeyInfoWriteError>
fn write_key_info_with_provider( &self, signing_key: &dyn SigningKey, provider: &dyn CryptoProvider, ) -> Result<String, KeyInfoWriteError>
Write key metadata through the cryptographic provider selected for the operation. Read more
Auto Trait Implementations§
impl Freeze for X509DigestKeyInfoWriter
impl RefUnwindSafe for X509DigestKeyInfoWriter
impl Send for X509DigestKeyInfoWriter
impl Sync for X509DigestKeyInfoWriter
impl Unpin for X509DigestKeyInfoWriter
impl UnsafeUnpin for X509DigestKeyInfoWriter
impl UnwindSafe for X509DigestKeyInfoWriter
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