|
||||||||||
TUTORIALSHow to use Signer: Validating document signaturesAs easy as 1, 2, 3... This document assumes that you have read the previous introductory tutorials - especially the ones about key store management and signature generation.
|
||||||||||
| Signature encoding | jPDF checks the PDF signature encoding and the byte ranges of the signature calculation. If an error is raised it means the encoding is malformed or an incremental update was performed on the document. |
| Signature value | The signature computation is then performed and compared to the one in the document. If the value is different, the document was changed. Due to its nature, this operation can be resource intensive. |
| Certificate validation | jPDF checks to see if the certificate was actually signed by its parents in the certification chain. |
| Signing dates | Checks to see if the certificates were valide at the time the document was signed. |
| Revocation list | Finally, the signature can be checked against the revocation list. This action is performed when validation(true) is called on the signature. It requires an HTTP connection to the third party authority to dynamically validate if any certificates that are part of the chain were revoked at the time of signing. |
Validation checks are non-blocking and the results are recorded in the ValidationResults object. You can then call isValid() to check if it contains any major errors.
| © 2000-2007 Crionics Inc. |