pub struct DeterministicSigningProvider { /* private fields */ }Expand description
Deterministic provider for tests and golden fixtures.
This provider is not cryptographic. It creates reproducible bytes so XMLDSig structure, canonicalization, reference digests, and verification flow can be tested before adding real key backends.
Implementations§
Source§impl DeterministicSigningProvider
impl DeterministicSigningProvider
pub fn new( certificate_der: impl Into<Vec<u8>>, secret: impl Into<Vec<u8>>, ) -> Self
pub fn with_certificate_issuer_serial( self, issuer_name: impl Into<String>, serial_number: impl Into<String>, ) -> Self
pub fn with_certificate_chain_details( self, certificate_chain_details: Vec<CertificateDetails>, ) -> Self
Trait Implementations§
Source§impl Clone for DeterministicSigningProvider
impl Clone for DeterministicSigningProvider
Source§fn clone(&self) -> DeterministicSigningProvider
fn clone(&self) -> DeterministicSigningProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeterministicSigningProvider
impl Debug for DeterministicSigningProvider
impl Eq for DeterministicSigningProvider
Source§impl PartialEq for DeterministicSigningProvider
impl PartialEq for DeterministicSigningProvider
Source§fn eq(&self, other: &DeterministicSigningProvider) -> bool
fn eq(&self, other: &DeterministicSigningProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl SigningProvider for DeterministicSigningProvider
impl SigningProvider for DeterministicSigningProvider
fn certificate_der(&self) -> XmlResult<Vec<u8>>
fn certificate_details(&self) -> XmlResult<CertificateDetails>
fn certificate_chain_der(&self) -> XmlResult<Vec<Vec<u8>>>
fn certificate_chain_details(&self) -> XmlResult<Vec<CertificateDetails>>
fn sign(&self, algorithm: SignatureAlgorithm, data: &[u8]) -> XmlResult<Vec<u8>>
Source§fn ensure_certificate_valid_at(&self, _unix_timestamp: i64) -> XmlResult<()>
fn ensure_certificate_valid_at(&self, _unix_timestamp: i64) -> XmlResult<()>
Validates that the signing certificate is valid at a UNIX timestamp. Read more
fn verify( &self, algorithm: SignatureAlgorithm, data: &[u8], signature: &[u8], ) -> XmlResult<bool>
impl StructuralPartialEq for DeterministicSigningProvider
Auto Trait Implementations§
impl Freeze for DeterministicSigningProvider
impl RefUnwindSafe for DeterministicSigningProvider
impl Send for DeterministicSigningProvider
impl Sync for DeterministicSigningProvider
impl Unpin for DeterministicSigningProvider
impl UnsafeUnpin for DeterministicSigningProvider
impl UnwindSafe for DeterministicSigningProvider
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