| Modifier and Type | Field and Description |
|---|---|
| private CertInformationCollector | |
| private final Map | |
| private COSArray | |
| private COSArray | |
| private COSArray | |
| private COSArray | |
| private PDDocument | |
| private final Set | |
| private static final Log | |
| private final Set | |
| private COSArray | |
| private Calendar | |
| private COSDictionary |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | addCrlRevocationInfo(CertInformationCollector.
the certificate info, for it to check CRL data. certInfoFetches and adds CRL data to storage for the given Certificate. |
| private void | addExtensions(PDDocumentCatalog
to add Extensions into catalog)Adds Extensions to the document catalog. |
| private void | addOcspData(CertInformationCollector.
the certificate info, for it to check OCSP data. certInfoFetches and adds OCSP data to storage for the given Certificate. |
| private void | |
| private void | addRevocationData(CertInformationCollector.
Certificate information from CertInformationHelper containing certificate
chains. certInfoFetches and adds revocation information based on the certInfo to the DSS. |
| private void | addRevocationDataRecursive(CertInformationCollector.
from which to fetch revocation data. Will work recursively through its
chains. certInfoTries to get Revocation Data (first OCSP, else CRL) from the given Certificate Chain. |
| private void | doValidation(String
in file to extract signature filename, OutputStream where to write the changed document output)Fetches certificate information from the last signature of the document and appends a DSS with the validation information to the document. |
| private void | fetchCrlData(CertInformationCollector.
the certificate info, for it to check CRL data. certInfoTries to fetch and add CRL Data to its containers. |
| private boolean | Returns: true when the OCSP data has successfully been fetched and addedthe certificate info, for it to check OCSP data. certInfoTries to fetch and add OCSP Data to its containers. |
| private static <T extends COSBase & COSUpdateInfo> T | Returns: a Element of given class, new or existingthe class of the dictionary entry, must implement COSUpdateInfo clazz, COSDictionary where to find the element parent, String of the element name)Gets or creates a dictionary entry. |
| public static void | |
| private void | |
| private static void | |
| public void | |
| private COSStream | Returns: COSStream a COSStream object that can be added to the documentto write into the COSStream data)Creates a Flate encoded |
| certInformationHelper | back to summary |
|---|---|
| private CertInformationCollector certInformationHelper | |
| certMap | back to summary |
|---|---|
| private final Map<X509Certificate, COSStream> certMap | |
| certs | back to summary |
|---|---|
| private COSArray certs | |
| correspondingCRLs | back to summary |
|---|---|
| private COSArray correspondingCRLs | |
| correspondingOCSPs | back to summary |
|---|---|
| private COSArray correspondingOCSPs | |
| crls | back to summary |
|---|---|
| private COSArray crls | |
| document | back to summary |
|---|---|
| private PDDocument document | |
| foundRevocationInformation | back to summary |
|---|---|
| private final Set<X509Certificate> foundRevocationInformation | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| ocspChecked | back to summary |
|---|---|
| private final Set<X509Certificate> ocspChecked | |
| ocsps | back to summary |
|---|---|
| private COSArray ocsps | |
| signDate | back to summary |
|---|---|
| private Calendar signDate | |
| vriBase | back to summary |
|---|---|
| private COSDictionary vriBase | |
| AddValidationInformation | back to summary |
|---|---|
| public AddValidationInformation() | |
| addAllCertsToCertArray | back to summary |
|---|---|
| private void addAllCertsToCertArray() throws IOException Adds all certs to the certs-array. Make sure that all certificates are inside the certificateStore of certInformationHelper. This should be the only call to fill certs. | |
| addCrlRevocationInfo | back to summary |
|---|---|
| private void addCrlRevocationInfo(CertInformationCollector. Fetches and adds CRL data to storage for the given Certificate.
| |
| addExtensions | back to summary |
|---|---|
| private void addExtensions(PDDocumentCatalog catalog) Adds Extensions to the document catalog. So that the use of DSS is identified. Described in PAdES Part 4, Chapter 4.4.
| |
| addOcspData | back to summary |
|---|---|
| private void addOcspData(CertInformationCollector. Fetches and adds OCSP data to storage for the given Certificate.
| |
| addOcspData | back to summary |
|---|---|
| private void addOcspData(X509Certificate certificate, X509Certificate issuerCertificate, String ocspURL) throws IOException, OCSPException, CertificateProccessingException, RevokedCertificateException, URISyntaxException | |
| addRevocationData | back to summary |
|---|---|
| private void addRevocationData(CertInformationCollector. Fetches and adds revocation information based on the certInfo to the DSS.
| |
| addRevocationDataRecursive | back to summary |
|---|---|
| private void addRevocationDataRecursive(CertInformationCollector. Tries to get Revocation Data (first OCSP, else CRL) from the given Certificate Chain.
| |
| doValidation | back to summary |
|---|---|
| private void doValidation(String filename, OutputStream output) throws IOException Fetches certificate information from the last signature of the document and appends a DSS with the validation information to the document.
| |
| fetchCrlData | back to summary |
|---|---|
| private void fetchCrlData(CertInformationCollector. Tries to fetch and add CRL Data to its containers.
| |
| fetchOcspData | back to summary |
|---|---|
| private boolean fetchOcspData(CertInformationCollector. Tries to fetch and add OCSP Data to its containers.
| |
| getOrCreateDictionaryEntry | back to summary |
|---|---|
| private static <T extends COSBase & COSUpdateInfo> T getOrCreateDictionaryEntry(Class<T> clazz, COSDictionary parent, String name) throws IOException Gets or creates a dictionary entry. If existing checks for the type and sets need to be updated.
| |
| main | back to summary |
|---|---|
| public static void main(String[] args) throws IOException | |
| updateVRI | back to summary |
|---|---|
| private void updateVRI(CertInformationCollector. | |
| usage | back to summary |
|---|---|
| private static void usage() | |
| validateSignature | back to summary |
|---|---|
| public void validateSignature(File inFile, File outFile) throws IOException Signs the given PDF file.
| |
| writeDataToStream | back to summary |
|---|---|
| private COSStream writeDataToStream(byte[] data) throws IOException Creates a Flate encoded
| |