pub struct EnvelopeCheckVerifier;Expand description
Simple envelope verifier for tests and a pseudo-signature.
Expects a wrapper format -----BEGIN SIGNED-XML-----\n<XML>\n-----END SIGNED-XML-----
and extracts the XML block. The signature part here is only the
envelope presence (no real crypto check) — the purpose is end-
to-end tests of the verifier call chain.
Trait Implementations§
Source§impl XmlSignatureVerifier for EnvelopeCheckVerifier
impl XmlSignatureVerifier for EnvelopeCheckVerifier
Source§fn verify_and_extract(
&self,
signed_doc: &[u8],
) -> Result<Vec<u8>, PermissionsError>
fn verify_and_extract( &self, signed_doc: &[u8], ) -> Result<Vec<u8>, PermissionsError>
Checks the signature of a permissions or governance XML. Read more
Auto Trait Implementations§
impl Freeze for EnvelopeCheckVerifier
impl RefUnwindSafe for EnvelopeCheckVerifier
impl Send for EnvelopeCheckVerifier
impl Sync for EnvelopeCheckVerifier
impl Unpin for EnvelopeCheckVerifier
impl UnsafeUnpin for EnvelopeCheckVerifier
impl UnwindSafe for EnvelopeCheckVerifier
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