Components » StreamSec Tools
componentTstPdfVerifier
TstPdfVerifier
Basic verification counterpart of TstPdfSigner: locates the first signature, checks the ByteRange geometry (including detection of content appended AFTER signing - the incremental-update surface every PDF validator must report), and verifies the detached CMS over the signed spans through TstCustomMPSignedData with the assigned KeysAndCerts (the manager's configuration decides trust, exactly as for CMS verification; an embedded RFC 3161 signature time-stamp is verified along the way and surfaced through LastTimeStampTime). Deeper PAdES policy - DocMDP, permitted-change analysis of post-signing updates, LTV - is later work.
Certificates embedded in the signature are imported automatically by the CMS layer, but the key manager only STORES a certificate that chains correctly under its filters and indexes, and that requires a trust anchor of the chain to be present in the manager's root store (plus a storage willing to accept it). So configure KeysAndCerts with the trusted root(s) before verifying; a signature whose chain has no anchor there is reported pssInvalid with "signer certificate could not be resolved/trusted", not silently accepted.
Properties
Events
Methods