Class ASiCWithCAdESCounterSignatureHelper
java.lang.Object
eu.europa.esig.dss.asic.common.signature.ASiCCounterSignatureHelper
eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESCounterSignatureHelper
The class contains useful methods for ASiC with CAdES counter signature creation
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.common.signature.ASiCCounterSignatureHelper
asicContainer
-
Constructor Summary
ModifierConstructorDescriptionprotected
ASiCWithCAdESCounterSignatureHelper
(DSSDocument asicContainer) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCounterSignaturePossible
(DSSDocument signatureDocument) This method verifies if a signatureDocument can be counter signed Throws an exception when an extension is not possibleprotected AbstractASiCContainerExtractor
Gets an ASiC container extractor relative to the current implementationprotected List<DSSDocument>
getDetachedDocuments
(String signatureFilename) Returns a list if detached documents for a signature with a given filenameprotected DocumentValidator
getDocumentValidator
(DSSDocument signatureDocument) Gets a Document Validator relative to the current implementationgetManifestFile
(String signatureFilename) Returns a related manifest file for a signature with the given filename NOTE: used for ASiC with CAdES onlyMethods inherited from class eu.europa.esig.dss.asic.common.signature.ASiCCounterSignatureHelper
extractSignatureDocument, getAsicContent
-
Constructor Details
-
ASiCWithCAdESCounterSignatureHelper
The default constructor- Parameters:
asicContainer
-DSSDocument
representing an ASiC with CAdES container
-
-
Method Details
-
getASiCContainerExtractor
Description copied from class:ASiCCounterSignatureHelper
Gets an ASiC container extractor relative to the current implementation- Specified by:
getASiCContainerExtractor
in classASiCCounterSignatureHelper
- Returns:
AbstractASiCContainerExtractor
-
getDocumentValidator
Description copied from class:ASiCCounterSignatureHelper
Gets a Document Validator relative to the current implementation- Specified by:
getDocumentValidator
in classASiCCounterSignatureHelper
- Parameters:
signatureDocument
-DSSDocument
- Returns:
DocumentValidator
-
getDetachedDocuments
Description copied from class:ASiCCounterSignatureHelper
Returns a list if detached documents for a signature with a given filename- Specified by:
getDetachedDocuments
in classASiCCounterSignatureHelper
- Parameters:
signatureFilename
-String
a signature filename- Returns:
- a list of
DSSDocument
s
-
getManifestFile
Description copied from class:ASiCCounterSignatureHelper
Returns a related manifest file for a signature with the given filename NOTE: used for ASiC with CAdES only- Overrides:
getManifestFile
in classASiCCounterSignatureHelper
- Parameters:
signatureFilename
-String
a signature filename- Returns:
ManifestFile
representing a related manifest file
-
checkCounterSignaturePossible
Description copied from class:ASiCCounterSignatureHelper
This method verifies if a signatureDocument can be counter signed Throws an exception when an extension is not possible- Overrides:
checkCounterSignaturePossible
in classASiCCounterSignatureHelper
- Parameters:
signatureDocument
-DSSDocument
to verify
-