Class PdfCompositeDssDictOCSPSource

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
eu.europa.esig.dss.pades.validation.dss.PdfCompositeDssDictOCSPSource
All Implemented Interfaces:
eu.europa.esig.dss.spi.x509.revocation.MultipleRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>, eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>, Serializable

public class PdfCompositeDssDictOCSPSource extends eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
Represents a merged result of extracted OCSP binaries from different /DSS revisions of a PDF document
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor instantiation an object with empty mpa of OCSP token objects
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addRevocation(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token, eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary)
     
    protected void
    extractDSSOCSPs(PdfDssDict dssDictionary)
    Extract the OCSPs from the DSS dictionary
    protected void
    extractVRIOCSPs(PdfDssDict dssDictionary)
    Extract the OCSPs from all embedded VRI dictionaries
    protected void
    extractVRIOCSPs(PdfVriDict vriDictionary)
    Extract the OCSPs from the VRI dictionary
    protected Set<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary>
    This method returns a set of CertificateTokens with the given PDF object id
    protected Set<Long>
    getRevocationTokenIds(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspToken)
    Returns corresponding PDF object identifier for the extracted revocation token
    protected Set<Long>
    getTokenBinaryObjectIds(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary)
    Returns PDF object identifier for the provided binary
    void
    This method allows adding OCSP tokens extracted from a /DSS revision

    Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource

    getRevocationTokens

    Methods inherited from class eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource

    addBinary, addRevocation, addRevocationReference, findBinaryForReference, findRefsAndOriginsForBinary, findRefsAndOriginsForRevocationToken, getADBERevocationValuesBinaries, getADBERevocationValuesTokens, getAllReferencedRevocationBinaries, getAllRevocationBinaries, getAllRevocationBinariesWithOrigins, getAllRevocationReferences, getAllRevocationTokens, getAllRevocationTokensWithOrigins, getAttributeRevocationRefs, getAttributeRevocationValuesBinaries, getAttributeRevocationValuesTokens, getCMSSignedDataRevocationBinaries, getCMSSignedDataRevocationTokens, getCompleteRevocationRefs, getDSSDictionaryBinaries, getDSSDictionaryTokens, getOrphanRevocationReferencesWithOrigins, getRevocationReferencesWithOrigins, getRevocationToken, getRevocationValuesBinaries, getRevocationValuesTokens, getTimestampValidationDataBinaries, getTimestampValidationDataTokens, getUniqueRevocationTokensWithOrigins, getVRIDictionaryBinaries, getVRIDictionaryTokens, isEmpty, isOrphan

    Methods inherited from class java.lang.Object

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

    • PdfCompositeDssDictOCSPSource

      public PdfCompositeDssDictOCSPSource()
      Default constructor instantiation an object with empty mpa of OCSP token objects
  • Method Details

    • populateFromDssDictionary

      public void populateFromDssDictionary(PdfDssDict dssDictionary)
      This method allows adding OCSP tokens extracted from a /DSS revision
      Parameters:
      dssDictionary - PdfDssDict representing a /DSS revision's content
    • extractDSSOCSPs

      protected void extractDSSOCSPs(PdfDssDict dssDictionary)
      Extract the OCSPs from the DSS dictionary
      Parameters:
      dssDictionary - PdfDssDict
    • extractVRIOCSPs

      protected void extractVRIOCSPs(PdfDssDict dssDictionary)
      Extract the OCSPs from all embedded VRI dictionaries
      Parameters:
      dssDictionary - PdfDssDict
    • extractVRIOCSPs

      protected void extractVRIOCSPs(PdfVriDict vriDictionary)
      Extract the OCSPs from the VRI dictionary
      Parameters:
      vriDictionary - PdfDssDict
    • getOCSPBinariesByObjectId

      protected Set<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary> getOCSPBinariesByObjectId(Long objectId)
      This method returns a set of CertificateTokens with the given PDF object id
      Parameters:
      objectId - Long PDF id of the object to be extracted
      Returns:
      set of OCSPResponseBinarys
    • getRevocationTokenIds

      protected Set<Long> getRevocationTokenIds(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> ocspToken)
      Returns corresponding PDF object identifier for the extracted revocation token
      Parameters:
      ocspToken - OCSPResponseBinary to get id for
      Returns:
      a set of Long identifiers
    • addRevocation

      public void addRevocation(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> token, eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary)
      Overrides:
      addRevocation in class eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP>
    • getTokenBinaryObjectIds

      protected Set<Long> getTokenBinaryObjectIds(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary)
      Returns PDF object identifier for the provided binary
      Parameters:
      binary - OCSPResponseBinary
      Returns:
      a set of Long identifiers