These examples were written in the context of Chapter 5 - "Validation of signed documents" of the Digital Signatures for PDF documents eBook.

c5_01_signatureintegrity

c5_02_signatureinfo

c5_03_certificatevalidation