Class PdfCompositeDssDictCRLSource

java.lang.Object
eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
eu.europa.esig.dss.pades.validation.dss.PdfCompositeDssDictCRLSource
All Implemented Interfaces:
eu.europa.esig.dss.spi.x509.revocation.MultipleRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, eu.europa.esig.dss.spi.x509.revocation.RevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>, Serializable

public class PdfCompositeDssDictCRLSource extends eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
Represents a merged result of extracted CRL 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 CRL 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.crl.CRL> token, eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL> binary)
     
    protected void
    extractDSSCRLs(PdfDssDict dssDictionary)
    Extract the CRLs from the DSS dictionary
    protected void
    extractVRICRLs(PdfDssDict dssDictionary)
    Extract the CRLs from all embedded VRI dictionaries
    protected void
    extractVRICRLs(PdfVriDict vriDictionary)
    Extract the CRLs from the VRI dictionary
    protected Set<eu.europa.esig.dss.crl.CRLBinary>
    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.crl.CRL> crlToken)
    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.crl.CRL> binary)
    Returns PDF object identifier for the provided binary
    void
    This method allows adding CRL tokens extracted from a /DSS revision

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

    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

    • PdfCompositeDssDictCRLSource

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

    • populateFromDssDictionary

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

      protected void extractDSSCRLs(PdfDssDict dssDictionary)
      Extract the CRLs from the DSS dictionary
      Parameters:
      dssDictionary - PdfDssDict
    • extractVRICRLs

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

      protected void extractVRICRLs(PdfVriDict vriDictionary)
      Extract the CRLs from the VRI dictionary
      Parameters:
      vriDictionary - PdfDssDict
    • getCRLBinariesByObjectId

      protected Set<eu.europa.esig.dss.crl.CRLBinary> getCRLBinariesByObjectId(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 CRLBinarys
    • getRevocationTokenIds

      protected Set<Long> getRevocationTokenIds(eu.europa.esig.dss.spi.x509.revocation.RevocationToken<eu.europa.esig.dss.model.x509.revocation.crl.CRL> crlToken)
      Returns corresponding PDF object identifier for the extracted revocation token
      Parameters:
      crlToken - CRLToken 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.crl.CRL> token, eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL> binary)
      Overrides:
      addRevocation in class eu.europa.esig.dss.spi.x509.revocation.OfflineRevocationSource<eu.europa.esig.dss.model.x509.revocation.crl.CRL>
    • getTokenBinaryObjectIds

      protected Set<Long> getTokenBinaryObjectIds(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL> binary)
      Returns PDF object identifier for the provided binary
      Parameters:
      binary - CRLBinary
      Returns:
      Long identifier