Package eu.europa.esig.dss.validation
Class ManifestFile
java.lang.Object
eu.europa.esig.dss.validation.ManifestFile
- All Implemented Interfaces:
Serializable
Represents a parsed Manifest File object
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDigestBase64String
(DigestAlgorithm digestAlgorithm) Gets base64 encoded digest string of the manifest document for the givendigestAlgorithm
Gets theDSSDocument
representing the manifestGets a list ofManifestEntry
sGets the manifest document's filenameReturns aManifestEntry
with argument Rootfile="true"Gets the signature filenameboolean
Gets if the manifest is related to an archive timestamp (ASiC-E with CAdES)boolean
isDocumentCovered
(String documentName) Checks if the document withdocumentName
is covered by the Manifestboolean
Gets if the manifest is related to a timestampvoid
setArchiveManifest
(boolean archiveManifest) Sets if the manifest is related to an archive timestamp (ASiC-E with CAdES)void
setDocument
(DSSDocument document) Sets the manifest documentvoid
setEntries
(List<ManifestEntry> entries) Sets a list ofManifestEntry
svoid
setSignatureFilename
(String signatureFilename) Sets the signature filenamevoid
setTimestampManifest
(boolean timestampManifest) Sets if the manifest is related to a timestamp
-
Constructor Details
-
ManifestFile
public ManifestFile()Default constructor instantiating object with null values
-
-
Method Details
-
getDocument
Gets theDSSDocument
representing 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
-DigestAlgorithm
to compute digest- Returns:
String
base64-encoded digest value
-
getEntries
Gets a list ofManifestEntry
s- Returns:
- a list of
ManifestEntry
s
-
setEntries
Sets a list ofManifestEntry
s- Parameters:
entries
- a list ofManifestEntry
s
-
isTimestampManifest
public boolean isTimestampManifest()Gets if the manifest is related to a timestamp- Returns:
- TRUE if it is a timestamp's manifest, FALSE otherwise
-
setTimestampManifest
public void setTimestampManifest(boolean timestampManifest) Sets if the manifest is related to a timestamp- Parameters:
timestampManifest
- if it is a timestamp's manifest
-
isArchiveManifest
public boolean isArchiveManifest()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
public void setArchiveManifest(boolean archiveManifest) 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 aManifestEntry
with argument Rootfile="true"- Returns:
ManifestEntry
if the rootfile is found, FALSE otherwise
-
isDocumentCovered
Checks if the document withdocumentName
is covered by the Manifest- Parameters:
documentName
-String
to check- Returns:
- TRUE if the document with the given name is covered, FALSE otherwise
-