Package eu.europa.esig.dss.validation
Class ManifestFile
java.lang.Object
eu.europa.esig.dss.validation.ManifestFile
public class ManifestFile extends Object
Represents a parsed Manifest File object
-
Constructor Summary
Constructors Constructor Description ManifestFile() -
Method Summary
Modifier and Type Method Description StringgetDigestBase64String(DigestAlgorithm digestAlgorithm)Gets base64 encoded digest string of the manifest document for the givendigestAlgorithmList<ManifestEntry>getEntries()Gets a list ofManifestEntrysStringgetFilename()Gets the manifest document's filenameManifestEntrygetRootFile()Returns aManifestEntrywith argument Rootfile="true"StringgetSignatureFilename()Gets the signature filenamebooleanisArchiveManifest()Gets if the manifest is related to an archive timestamp (ASiC-E with CAdES)booleanisTimestampManifest()Gets if the manifest is related to a timestampvoidsetArchiveManifest(boolean archiveManifest)Sets if the manifest is related to an archive timestamp (ASiC-E with CAdES)voidsetDocument(DSSDocument document)Sets the manifest documentvoidsetEntries(List<ManifestEntry> entries)Sets a list ofManifestEntrysvoidsetSignatureFilename(String signatureFilename)Sets the signature filenamevoidsetTimestampManifest(boolean timestampManifest)Sets if the manifest is related to a timestamp
-
Constructor Details
-
ManifestFile
public ManifestFile()
-
-
Method Details
-
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
-
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 aManifestEntrywith argument Rootfile="true"- Returns:
ManifestEntryif the rootfile is found, FALSE otherwise
-