pub struct Verifier<'a> { /* private fields */ }Expand description
A parsed PDF ready to be verified.
Implementations§
source§impl<'a> Verifier<'a>
impl<'a> Verifier<'a>
sourcepub fn parse(pdf_bytes: &'a [u8]) -> Result<Self>
pub fn parse(pdf_bytes: &'a [u8]) -> Result<Self>
Parse a PDF document and creates the verification structure.
Parameter pdf_bytes is the byte array of the PDF document.
sourcepub fn verify(&self, end_of_reference_pdf: usize) -> Result<Vec<SignatureInfo>>
pub fn verify(&self, end_of_reference_pdf: usize) -> Result<Vec<SignatureInfo>>
Verifies if the contents of a signed PDF file matches an earlier version.
The end_of_reference_pdf is the byte offset that limits the original
PDF document inside the full signed document, to be compared against.
The contents of the original document must match the contents of the
signed document.
Auto Trait Implementations§
impl<'a> Freeze for Verifier<'a>
impl<'a> RefUnwindSafe for Verifier<'a>
impl<'a> Send for Verifier<'a>
impl<'a> Sync for Verifier<'a>
impl<'a> Unpin for Verifier<'a>
impl<'a> UnwindSafe for Verifier<'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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more