Package eu.europa.esig.dss.pdf
Class DSSDictionaryExtractionUtils
java.lang.Object
eu.europa.esig.dss.pdf.DSSDictionaryExtractionUtils
Contains utils for a DSS dictionary content extraction
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<Long,
CertificateToken> getCertsFromArray
(PdfDict dict, String dictionaryName, String arrayName) Extract certificate object mapgetCRLsFromArray
(PdfDict dict, String dictionaryName, String arrayName) Extract CRL object mapstatic Date
This method returns a value of 'TU' field when presentstatic Map<Long,
OCSPResponseBinary> getOCSPsFromArray
(PdfDict dict, String dictionaryName, String arrayName) Extract OCSP object mapstatic byte[]
getTimestampBinaries
(PdfDict dict) This method returns timestamp binaries extracted from 'TS' field, when present
-
Method Details
-
getCertsFromArray
public static Map<Long,CertificateToken> getCertsFromArray(PdfDict dict, String dictionaryName, String arrayName) Extract certificate object map -
getCRLsFromArray
public static Map<Long,CRLBinary> getCRLsFromArray(PdfDict dict, String dictionaryName, String arrayName) Extract CRL object map -
getOCSPsFromArray
public static Map<Long,OCSPResponseBinary> getOCSPsFromArray(PdfDict dict, String dictionaryName, String arrayName) Extract OCSP object map -
getDictionaryCreationTime
This method returns a value of 'TU' field when present -
getTimestampBinaries
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
-