pub struct Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G> { /* private fields */ }Expand description
CMS facts from the actual PDF ByteRange pass. The private constructor
prevents a result over caller replacement content from entering PAdES.
Implementations§
Source§impl<'v, 'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D: Copy + Eq, G: Copy + Eq> Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
Sourcepub fn checks(&self) -> &DocumentChecks<'v>
pub fn checks(&self) -> &DocumentChecks<'v>
Independent content and arithmetic answers of the original PDF pass.
Sourcepub fn signature(&self) -> Signature<'a, 's, D, G>
pub fn signature(&self) -> Signature<'a, 's, D, G>
The exact original signature whose ByteRange was actually processed.
Sourcepub fn input_verified(&self) -> bool
pub fn input_verified(&self) -> bool
Both the original range input and its selected-key signature passed. Certificate association, paths and application trust remain separate.
Sourcepub fn bind<'r, 'path, 'q, P: AsnDigest<'q>>(
&'r self,
certificate: &'path Certificate<'d>,
path: Option<&'path CheckedPath<'d>>,
provider: &'q P,
parent: &Reader<'q>,
) -> Result<Bound<'v, 'p, 'm, 'd, 'a, 's, 'path, D, G>, BindError<P::Error>>where
'd: 'q,
pub fn bind<'r, 'path, 'q, P: AsnDigest<'q>>(
&'r self,
certificate: &'path Certificate<'d>,
path: Option<&'path CheckedPath<'d>>,
provider: &'q P,
parent: &Reader<'q>,
) -> Result<Bound<'v, 'p, 'm, 'd, 'a, 's, 'path, D, G>, BindError<P::Error>>where
'd: 'q,
Compares the actual checked effective key, original SID, included certificate and all protected ESS/path restrictions through their one existing shared kernel. It does not replay the PDF or its signature.
§Panics
Panics if the internal single-root verification invariant is violated.
Auto Trait Implementations§
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Freeze for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !RefUnwindSafe for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Send for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !Sync for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> !UnwindSafe for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> Forget for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> Unpin for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>where
&'v Preparation<'p, 'm, 'd, 'a, 's, D, G>: Unpin,
impl<'v, 'p, 'm, 'd, 'a, 's, D, G> UnsafeUnpin for Mathematical<'v, 'p, 'm, 'd, 'a, 's, D, G>where
&'v Preparation<'p, 'm, 'd, 'a, 's, D, G>: UnsafeUnpin,
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