Class DSSDictionaryExtractionUtils

java.lang.Object
eu.europa.esig.dss.pdf.DSSDictionaryExtractionUtils

public class DSSDictionaryExtractionUtils extends Object
Contains utils for a DSS dictionary content extraction
  • Method Details

    • getCertsFromArray

      public static Map<Long,CertificateToken> getCertsFromArray(PdfDict dict, String dictionaryName, String arrayName)
      Extract certificate object map
      Parameters:
      dict - PdfDict
      dictionaryName - String name of the dictionary
      arrayName - String containing the certificates
      Returns:
      a map of certificate objects
    • getCRLsFromArray

      public static Map<Long,CRLBinary> getCRLsFromArray(PdfDict dict, String dictionaryName, String arrayName)
      Extract CRL object map
      Parameters:
      dict - PdfDict
      dictionaryName - String name of the dictionary
      arrayName - String containing the CRLs
      Returns:
      a map of CRL objects
    • getOCSPsFromArray

      public static Map<Long,OCSPResponseBinary> getOCSPsFromArray(PdfDict dict, String dictionaryName, String arrayName)
      Extract OCSP object map
      Parameters:
      dict - PdfDict
      dictionaryName - String name of the dictionary
      arrayName - String containing the OCSPs
      Returns:
      a map of OCSP objects
    • getDictionaryCreationTime

      public static Date getDictionaryCreationTime(PdfDict dict)
      This method returns a value of 'TU' field when present
      Parameters:
      dict - PdfDict to get 'TU' time from
      Returns:
      Date
    • getTimestampBinaries

      public static byte[] getTimestampBinaries(PdfDict dict)
      This method returns timestamp binaries extracted from 'TS' field, when present
      Parameters:
      dict - PdfDict to get 'TS' timestamp from
      Returns:
      byte array representing a timestamp when present