Package eu.europa.esig.dss.asic.common
Class ASiCContent
java.lang.Object
eu.europa.esig.dss.asic.common.ASiCContent
- All Implemented Interfaces:
Serializable
Contains grouped documents representing an ASiC container's content
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault constructor instantiating object with null values and empty list of documents -
Method Summary
Modifier and TypeMethodDescriptionGets all documentsReturns a list of all found manifest documentsGets archive manifest documents (ASiC with CAdES only)Gets the original ASiC containerGets "package.zip" documentsGets the container typeReturns a list of folders present within the containerGets manifest documentsGets mimetype documentThis method returns a list of documents at the root level within the containerGets signature documentsGets signed documentsGets timestamp documents (ASiC with CAdES only)Gets unsupported documentsGets the zip commentvoid
setArchiveManifestDocuments
(List<DSSDocument> archiveManifestDocuments) Sets archive manifest documents (ASiC with CAdES only)void
setAsicContainer
(DSSDocument asicContainer) Sets the original ASiC containervoid
setContainerDocuments
(List<DSSDocument> containerDocuments) Sets package.zip" documentsvoid
setContainerType
(ASiCContainerType containerType) Sets the container typevoid
setFolders
(List<DSSDocument> folders) Sets a list of folders present within an archivevoid
setManifestDocuments
(List<DSSDocument> manifestDocuments) Sets manifest documentsvoid
setMimeTypeDocument
(DSSDocument mimeTypeDocument) Sets mimetype documentvoid
setSignatureDocuments
(List<DSSDocument> signatureDocuments) Sets signature documentsvoid
setSignedDocuments
(List<DSSDocument> signedDocuments) Sets signed documentsvoid
setTimestampDocuments
(List<DSSDocument> timestampDocuments) Sets timestamp documents (ASiC with CAdES only)void
setUnsupportedDocuments
(List<DSSDocument> unsupportedDocuments) Sets unsupported documentsvoid
setZipComment
(String zipComment) Sets the zip comment
-
Constructor Details
-
ASiCContent
public ASiCContent()Default constructor instantiating object with null values and empty list of documents
-
-
Method Details
-
getAsicContainer
Gets the original ASiC container- Returns:
DSSDocument
-
setAsicContainer
Sets the original ASiC container- Parameters:
asicContainer
-DSSDocument
-
getContainerType
Gets the container type- Returns:
ASiCContainerType
-
setContainerType
Sets the container type- Parameters:
containerType
-ASiCContainerType
-
getZipComment
Gets the zip comment- Returns:
String
zip comment
-
setZipComment
Sets the zip comment- Parameters:
zipComment
-String
-
getMimeTypeDocument
Gets mimetype document- Returns:
DSSDocument
-
setMimeTypeDocument
Sets mimetype document- Parameters:
mimeTypeDocument
-DSSDocument
-
getSignatureDocuments
Gets signature documents- Returns:
- a list of
DSSDocument
s
-
setSignatureDocuments
Sets signature documents- Parameters:
signatureDocuments
- a list ofDSSDocument
s
-
getManifestDocuments
Gets manifest documents- Returns:
- a list of
DSSDocument
s
-
setManifestDocuments
Sets manifest documents- Parameters:
manifestDocuments
- a list ofDSSDocument
s
-
getArchiveManifestDocuments
Gets archive manifest documents (ASiC with CAdES only)- Returns:
- a list of
DSSDocument
s
-
setArchiveManifestDocuments
Sets archive manifest documents (ASiC with CAdES only)- Parameters:
archiveManifestDocuments
- a list ofDSSDocument
s
-
getTimestampDocuments
Gets timestamp documents (ASiC with CAdES only)- Returns:
- a list of
DSSDocument
s
-
setTimestampDocuments
Sets timestamp documents (ASiC with CAdES only)- Parameters:
timestampDocuments
- a list ofDSSDocument
s
-
getSignedDocuments
Gets signed documents- Returns:
- a list of
DSSDocument
s
-
setSignedDocuments
Sets signed documents- Parameters:
signedDocuments
- a list ofDSSDocument
s
-
getUnsupportedDocuments
Gets unsupported documents- Returns:
- a list of
DSSDocument
s
-
setUnsupportedDocuments
Sets unsupported documents- Parameters:
unsupportedDocuments
- a list ofDSSDocument
s
-
getFolders
Returns a list of folders present within the container- Returns:
- a list of
DSSDocument
s
-
setFolders
Sets a list of folders present within an archive- Parameters:
folders
- a list ofDSSDocument
s
-
getContainerDocuments
Gets "package.zip" documents- Returns:
- a list of
DSSDocument
s
-
setContainerDocuments
Sets package.zip" documents- Parameters:
containerDocuments
- a list ofDSSDocument
s
-
getRootLevelSignedDocuments
This method returns a list of documents at the root level within the container- Returns:
- a list of
DSSDocument
s
-
getAllManifestDocuments
Returns a list of all found manifest documents- Returns:
- list of
DSSDocument
s
-
getAllDocuments
Gets all documents- Returns:
- a list of
DSSDocument
s
-