Class AbstractASiCContentBuilder
java.lang.Object
eu.europa.esig.dss.asic.common.signature.AbstractASiCContentBuilder
- Direct Known Subclasses:
ASiCWithCAdESASiCContentBuilder
,ASiCWithXAdESASiCContentBuilder
Abstract class used to build an instance of
ASiCContent
.
As input an ASiC Container can be used or documents to be signed-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(List<DSSDocument> documents, ASiCContainerType asicContainerType) Builds theASiCContent
from theprotected abstract AbstractASiCContainerExtractor
getContainerExtractor
(DSSDocument archiveDocument) Returns an instance of a corresponding container extractor classprotected abstract boolean
isAcceptableContainerFormat
(DSSDocument archiveDocument) Method verifies whether the givenarchiveDocument
has an acceptable to the format type
-
Constructor Details
-
AbstractASiCContentBuilder
protected AbstractASiCContentBuilder()Default constructor
-
-
Method Details
-
build
Builds theASiCContent
from the- Parameters:
documents
- representing an ASiC Container or a list of documents to be signedasicContainerType
-ASiCContainerType
representing the target ASiC Container type- Returns:
ASiCContent
-
isAcceptableContainerFormat
Method verifies whether the givenarchiveDocument
has 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 AbstractASiCContainerExtractor getContainerExtractor(DSSDocument archiveDocument) Returns an instance of a corresponding container extractor class- Parameters:
archiveDocument
-DSSDocument
representing a container to be extracted- Returns:
AbstractASiCContainerExtractor
-