Module jpms_dss_pades
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
ConstructorsConstructorDescriptionDefault constructor instantiation an object with empty mpa of OCSP token objects -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRevocation(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 voidextractDSSOCSPs(PdfDssDict dssDictionary) Extract the OCSPs from the DSS dictionaryprotected voidextractVRIOCSPs(PdfDssDict dssDictionary) Extract the OCSPs from all embedded VRI dictionariesprotected voidextractVRIOCSPs(PdfVriDict vriDictionary) Extract the OCSPs from the VRI dictionaryprotected Set<eu.europa.esig.dss.spi.x509.revocation.ocsp.OCSPResponseBinary>getOCSPBinariesByObjectId(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.ocsp.OCSP> ocspToken) Returns corresponding PDF object identifier for the extracted revocation tokengetTokenBinaryObjectIds(eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary) Returns PDF object identifier for the provided binaryvoidpopulateFromDssDictionary(PdfDssDict dssDictionary) This method allows adding OCSP tokens extracted from a /DSS revisionMethods inherited from class eu.europa.esig.dss.spi.x509.revocation.ocsp.OfflineOCSPSource
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
-
PdfCompositeDssDictOCSPSource
public PdfCompositeDssDictOCSPSource()Default constructor instantiation an object with empty mpa of OCSP token objects
-
-
Method Details
-
populateFromDssDictionary
This method allows adding OCSP tokens extracted from a /DSS revision- Parameters:
dssDictionary-PdfDssDictrepresenting a /DSS revision's content
-
extractDSSOCSPs
Extract the OCSPs from the DSS dictionary- Parameters:
dssDictionary-PdfDssDict
-
extractVRIOCSPs
Extract the OCSPs from all embedded VRI dictionaries- Parameters:
dssDictionary-PdfDssDict
-
extractVRIOCSPs
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 ofCertificateTokens with the given PDF object id- Parameters:
objectId-LongPDF 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-OCSPResponseBinaryto 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.ocsp.OCSP> token, eu.europa.esig.dss.model.identifier.EncapsulatedRevocationTokenIdentifier<eu.europa.esig.dss.model.x509.revocation.ocsp.OCSP> binary) - Overrides:
addRevocationin classeu.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
Longidentifiers
-