Class PdfCompositeDssDictCRLSource

All Implemented Interfaces:
MultipleRevocationSource<CRL>, RevocationSource<CRL>, Serializable

public class PdfCompositeDssDictCRLSource extends OfflineCRLSource
Represents a merged result of extracted CRL binaries from different /DSS revisions of a PDF document
See Also:
  • 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<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(RevocationToken<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(RevocationToken<CRL> token, EncapsulatedRevocationTokenIdentifier<CRL> binary)
      Description copied from class: OfflineRevocationSource
      This method adds a RevocationToken from the binary
      Overrides:
      addRevocation in class OfflineRevocationSource<CRL>
      Parameters:
      token - the token to be added
      binary - the binary where the token has been extracted
    • getTokenBinaryObjectIds

      protected Set<Long> getTokenBinaryObjectIds(EncapsulatedRevocationTokenIdentifier<CRL> binary)
      Returns PDF object identifier for the provided binary
      Parameters:
      binary - CRLBinary
      Returns:
      Long identifier