Package eu.europa.esig.dss.model
Class ManifestFile
java.lang.Object
eu.europa.esig.dss.model.ManifestFile
- All Implemented Interfaces:
Serializable
Represents a parsed Manifest File object
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDigestBase64String(DigestAlgorithm digestAlgorithm) Gets base64 encoded digest string of the manifest document for the givendigestAlgorithmGets theDSSDocumentrepresenting the manifestGets a list ofManifestEntrysGets the manifest document's filenameGets a type of the ASiC Manifest fileReturns aManifestEntrywith argument Rootfile="true"Gets the signature filenamebooleanDeprecated.since DSS 5.13.booleanisDocumentCovered(String documentName) Checks if the document withdocumentNameis covered by the ManifestbooleanDeprecated.since DSS 5.13.voidsetArchiveManifest(boolean archiveManifest) Deprecated.since DSS 5.13.voidsetDocument(DSSDocument document) Sets the manifest documentvoidsetEntries(List<ManifestEntry> entries) Sets a list ofManifestEntrysvoidsetManifestType(ASiCManifestTypeEnum manifestType) Sets a type of the ASiC Manifest filevoidsetSignatureFilename(String signatureFilename) Sets the signature filenamevoidsetTimestampManifest(boolean timestampManifest) Deprecated.since DSS 5.13.
-
Constructor Details
-
ManifestFile
public ManifestFile()Default constructor instantiating object with null values
-
-
Method Details
-
getDocument
Gets theDSSDocumentrepresenting the manifest- Returns:
DSSDocument
-
setDocument
Sets the manifest document- Parameters:
document-DSSDocument
-
getFilename
Gets the manifest document's filename- Returns:
String
-
getSignatureFilename
Gets the signature filename- Returns:
String
-
setSignatureFilename
Sets the signature filename- Parameters:
signatureFilename-String
-
getDigestBase64String
Gets base64 encoded digest string of the manifest document for the givendigestAlgorithm- Parameters:
digestAlgorithm-DigestAlgorithmto compute digest- Returns:
Stringbase64-encoded digest value
-
getEntries
Gets a list ofManifestEntrys- Returns:
- a list of
ManifestEntrys
-
setEntries
Sets a list ofManifestEntrys- Parameters:
entries- a list ofManifestEntrys
-
getManifestType
Gets a type of the ASiC Manifest file- Returns:
ASiCManifestTypeEnum
-
setManifestType
Sets a type of the ASiC Manifest file- Parameters:
manifestType-ASiCManifestTypeEnum
-
isTimestampManifest
Deprecated.since DSS 5.13. Use#getManifestTypemethod instead.Gets if the manifest is related to a timestamp- Returns:
- TRUE if it is a timestamp's manifest, FALSE otherwise
-
setTimestampManifest
Deprecated.since DSS 5.13. Use#setManifestTypemethod instead.Sets if the manifest is related to a timestamp- Parameters:
timestampManifest- if it is a timestamp's manifest
-
isArchiveManifest
Deprecated.since DSS 5.13. Use#getManifestTypemethod instead.Gets if the manifest is related to an archive timestamp (ASiC-E with CAdES)- Returns:
- TRUE if it is an archive timestamp's manifest, FALSE otherwise
-
setArchiveManifest
Deprecated.since DSS 5.13. Use#setManifestTypemethod instead.Sets if the manifest is related to an archive timestamp (ASiC-E with CAdES)- Parameters:
archiveManifest- if it is an archive timestamp's manifest
-
getRootFile
Returns aManifestEntrywith argument Rootfile="true"- Returns:
ManifestEntryif the rootfile is found, FALSE otherwise
-
isDocumentCovered
Checks if the document withdocumentNameis covered by the Manifest- Parameters:
documentName-Stringto check- Returns:
- TRUE if the document with the given name is covered, FALSE otherwise
-