Class PdfValidationDataContainer

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

public class PdfValidationDataContainer extends ValidationDataContainer
A PDF implementation if ValidationDataContainer containing a validation data to be incorporated within a PDF document
  • 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(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(Token token)
      Gets a token key (DSS Id or EntityKey Id for a CertificateToken)
      Parameters:
      token - Token
      Returns:
      String base64 encoded SHA-256 digest