Module jpms_dss_asic_common
Class ASiCCounterSignatureHelper
java.lang.Object
eu.europa.esig.dss.asic.common.signature.ASiCCounterSignatureHelper
The class contains methods for document extraction in order to create a counter signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final eu.europa.esig.dss.model.DSSDocumentThe document representing an ASiC container -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedASiCCounterSignatureHelper(eu.europa.esig.dss.model.DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCounterSignaturePossible(eu.europa.esig.dss.model.DSSDocument signatureDocument) This method verifies if a signatureDocument can be counter signed Throws an exception when an extension is not possibleeu.europa.esig.dss.model.DSSDocumentextractSignatureDocument(String signatureId) Returns a file containing a signature with the given idprotected abstract DefaultASiCContainerExtractorGets an ASiC container extractor relative to the current implementationReturnsASiCContentprotected abstract List<eu.europa.esig.dss.model.DSSDocument> getDetachedDocuments(String signatureFilename) Returns a list if detached documents for a signature with a given filenameprotected abstract eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzergetDocumentAnalyzer(eu.europa.esig.dss.model.DSSDocument signatureDocument) Gets a Document Validator relative to the current implementationeu.europa.esig.dss.model.ManifestFilegetManifestFile(String signatureFilename) Returns a related manifest file for a signature with the given filename NOTE: used for ASiC with CAdES only
-
Field Details
-
asicContainer
protected final eu.europa.esig.dss.model.DSSDocument asicContainerThe document representing an ASiC container
-
-
Constructor Details
-
ASiCCounterSignatureHelper
protected ASiCCounterSignatureHelper(eu.europa.esig.dss.model.DSSDocument asicContainer) The default constructor- Parameters:
asicContainer-DSSDocumentrepresenting an ASiC container
-
-
Method Details
-
getAsicContent
-
extractSignatureDocument
Returns a file containing a signature with the given id- Parameters:
signatureId-Stringid of a signature to extract a file with- Returns:
DSSDocumentsignature document containing a signature to be counter signed with a defined id
-
getDetachedDocuments
-
getManifestFile
Returns a related manifest file for a signature with the given filename NOTE: used for ASiC with CAdES only- Parameters:
signatureFilename-Stringa signature filename- Returns:
ManifestFilerepresenting a related manifest file
-
getASiCContainerExtractor
Gets an ASiC container extractor relative to the current implementation- Returns:
DefaultASiCContainerExtractor
-
getDocumentAnalyzer
protected abstract eu.europa.esig.dss.spi.validation.analyzer.DocumentAnalyzer getDocumentAnalyzer(eu.europa.esig.dss.model.DSSDocument signatureDocument) Gets a Document Validator relative to the current implementation- Parameters:
signatureDocument-DSSDocument- Returns:
DocumentAnalyzer
-
checkCounterSignaturePossible
protected void checkCounterSignaturePossible(eu.europa.esig.dss.model.DSSDocument signatureDocument) This method verifies if a signatureDocument can be counter signed Throws an exception when an extension is not possible- Parameters:
signatureDocument-DSSDocumentto verify
-