Module jpms_dss_asic_common
Class AbstractASiCContentBuilder
java.lang.Object
eu.europa.esig.dss.asic.common.signature.AbstractASiCContentBuilder
Abstract class used to build an instance of
ASiCContent.
As input an ASiC Container can be used or documents to be signed-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(List<eu.europa.esig.dss.model.DSSDocument> documents, eu.europa.esig.dss.enumerations.ASiCContainerType asicContainerType) Builds theASiCContentfrom theprotected abstract DefaultASiCContainerExtractorgetContainerExtractor(eu.europa.esig.dss.model.DSSDocument archiveDocument) Returns an instance of a corresponding container extractor classprotected abstract booleanisAcceptableContainerFormat(eu.europa.esig.dss.model.DSSDocument archiveDocument) Method verifies whether the givenarchiveDocumenthas an acceptable to the format type
-
Constructor Details
-
AbstractASiCContentBuilder
protected AbstractASiCContentBuilder()Default constructor
-
-
Method Details
-
build
public ASiCContent build(List<eu.europa.esig.dss.model.DSSDocument> documents, eu.europa.esig.dss.enumerations.ASiCContainerType asicContainerType) Builds theASiCContentfrom the- Parameters:
documents- representing an ASiC Container or a list of documents to be signedasicContainerType-ASiCContainerTyperepresenting the target ASiC Container type- Returns:
ASiCContent
-
isAcceptableContainerFormat
protected abstract boolean isAcceptableContainerFormat(eu.europa.esig.dss.model.DSSDocument archiveDocument) Method verifies whether the givenarchiveDocumenthas an acceptable to the format type- Parameters:
archiveDocument-DSSDocument- Returns:
- TRUE if the given document corresponds to the current format, FALSE otherwise
-
getContainerExtractor
protected abstract DefaultASiCContainerExtractor getContainerExtractor(eu.europa.esig.dss.model.DSSDocument archiveDocument) Returns an instance of a corresponding container extractor class- Parameters:
archiveDocument-DSSDocumentrepresenting a container to be extracted- Returns:
DefaultASiCContainerExtractor
-