Class PdfValidationDataContainer

java.lang.Object
eu.europa.esig.dss.validation.ValidationDataContainer
eu.europa.esig.dss.pades.validation.PdfValidationDataContainer

public class PdfValidationDataContainer extends eu.europa.esig.dss.validation.ValidationDataContainer
A PDF implementation if ValidationDataContainer containing a validation data to be incorporated within a PDF document
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    This method builds a map of token identifiers and their unique references within a PDF document from a list of extracted PdfRevisions
    getTokenKey(eu.europa.esig.dss.model.x509.Token token)
    Gets a token key (DSS Id or EntityKey Id for a CertificateToken)
    getTokenReference(eu.europa.esig.dss.model.x509.Token token)
    Returns a reference corresponding to the given token from the PDF document, if present

    Methods inherited from class eu.europa.esig.dss.validation.ValidationDataContainer

    addValidationData, addValidationData, getAllValidationData, getAllValidationDataForSignature, getCompleteValidationDataForSignature, getDetachedTimestamps, getSignatures, getValidationData, getValidationData, isEmpty

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PdfValidationDataContainer

      public PdfValidationDataContainer(Collection<PdfDocDssRevision> pdfDssRevisions)
      Default constructor
      Parameters:
      pdfDssRevisions - a collection of PdfDocDssRevisions extracted from a document
  • Method Details

    • getKnownObjectsMap

      public Map<String,Long> getKnownObjectsMap()
      This method builds a map of token identifiers and their unique references within a PDF document from a list of extracted PdfRevisions
      Returns:
      a map of token ids and their corresponding PDF references
    • getTokenReference

      public Long getTokenReference(eu.europa.esig.dss.model.x509.Token token)
      Returns a reference corresponding to the given token from the PDF document, if present
      Parameters:
      token - Token
      Returns:
      the token reference identifier when present, null otherwise
    • getTokenKey

      public String getTokenKey(eu.europa.esig.dss.model.x509.Token token)
      Gets a token key (DSS Id or EntityKey Id for a CertificateToken)
      Parameters:
      token - Token
      Returns:
      String base64 encoded SHA-256 digest