| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private final SimpleDateFormat |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | analyseDSS(PDDocument
PDDocument, to get the DSS from document)Analyzes the DSS-Dictionary (Document Security Store) of the document. |
| private void | |
| private Set | |
| public static void | |
| private void | printStreamsFromArray(COSArray
COSArray of elements containing a COS Stream elements, String to append on Print description)Go through the elements of a COSArray containing each an COSStream to print in Hex. |
| private void | |
| private static void | |
| private void | verifyETSIdotRFC3161(InputStream
the byte sequence that has been signed signedContentAsStream, byte[] the /Contents field as a COSString contents)Verify ETSI.RFC3161 TimeStampToken |
| private void | verifyPKCS7(InputStream
the byte sequence that has been signed signedContentAsStream, byte[] the /Contents field as a COSString contents, PDSignature the PDF signature (the /V dictionary) sig)Verify a PKCS7 signature. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| sdf | back to summary |
|---|---|
| private final SimpleDateFormat sdf | |
| ShowSignature | back to summary |
|---|---|
| private ShowSignature() | |
| analyseDSS | back to summary |
|---|---|
| private void analyseDSS(PDDocument document) throws IOException Analyzes the DSS-Dictionary (Document Security Store) of the document. Which is used for signature validation. The DSS is defined in PAdES Part 4 - Long Term Validation.
| |
| checkContentValueWithFile | back to summary |
|---|---|
| private void checkContentValueWithFile(File file, int[] byteRange, byte[] contents) throws IOException | |
| getRootCertificates | back to summary |
|---|---|
| private Set | |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException, TSPException, CertificateVerificationException, GeneralSecurityException This is the entry point for the application.
| |
| printStreamsFromArray | back to summary |
|---|---|
| private void printStreamsFromArray(COSArray elements, String description) throws IOException Go through the elements of a COSArray containing each an COSStream to print in Hex. | |
| showSignature | back to summary |
|---|---|
| private void showSignature(String[] args) throws IOException, GeneralSecurityException, TSPException, CertificateVerificationException | |
| usage | back to summary |
|---|---|
| private static void usage() This will print a usage message. | |
| verifyETSIdotRFC3161 | back to summary |
|---|---|
| private void verifyETSIdotRFC3161(InputStream signedContentAsStream, byte[] contents) throws CMSException, NoSuchAlgorithmException, IOException, TSPException, OperatorCreationException, CertificateVerificationException, CertificateException Verify ETSI.RFC3161 TimeStampToken
| |
| verifyPKCS7 | back to summary |
|---|---|
| private void verifyPKCS7(InputStream signedContentAsStream, byte[] contents, PDSignature sig) throws CMSException, OperatorCreationException, CertificateVerificationException, GeneralSecurityException, TSPException, IOException Verify a PKCS7 signature.
| |