Module jpms_dss_pades
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
ConstructorsConstructorDescriptionDefault constructor instantiation an object with empty mpa of CRL token objects -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevocation(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 voidextractDSSCRLs(PdfDssDict dssDictionary) Extract the CRLs from the DSS dictionaryprotected voidextractVRICRLs(PdfDssDict dssDictionary) Extract the CRLs from all embedded VRI dictionariesprotected voidextractVRICRLs(PdfVriDict vriDictionary) Extract the CRLs from the VRI dictionaryprotected Set<eu.europa.esig.dss.crl.CRLBinary>getCRLBinariesByObjectId(Long objectId) This method returns a set ofCertificateTokens with the given PDF object idgetRevocationTokenIds(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 tokengetTokenBinaryObjectIds(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.crl.CRL> binary) Returns PDF object identifier for the provided binaryvoidpopulateFromDssDictionary(PdfDssDict dssDictionary) This method allows adding CRL tokens extracted from a /DSS revisionMethods inherited from class eu.europa.esig.dss.spi.x509.revocation.crl.OfflineCRLSource
getRevocationTokensMethods 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
-
Constructor Details
-
PdfCompositeDssDictCRLSource
public PdfCompositeDssDictCRLSource()Default constructor instantiation an object with empty mpa of CRL token objects
-
-
Method Details
-
populateFromDssDictionary
This method allows adding CRL tokens extracted from a /DSS revision- Parameters:
dssDictionary-PdfDssDictrepresenting a /DSS revision's content
-
extractDSSCRLs
Extract the CRLs from the DSS dictionary- Parameters:
dssDictionary-PdfDssDict
-
extractVRICRLs
Extract the CRLs from all embedded VRI dictionaries- Parameters:
dssDictionary-PdfDssDict
-
extractVRICRLs
Extract the CRLs from the VRI dictionary- Parameters:
vriDictionary-PdfDssDict
-
getCRLBinariesByObjectId
This method returns a set ofCertificateTokens with the given PDF object id- Parameters:
objectId-LongPDF 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-CRLTokento get id for- Returns:
- a set of
Longidentifiers
-
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:
addRevocationin classeu.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:
Longidentifier
-