Class ManifestFile

java.lang.Object
eu.europa.esig.dss.model.ManifestFile
All Implemented Interfaces:
Serializable

public class ManifestFile extends Object implements Serializable
Represents a parsed Manifest File object
See Also:
  • Constructor Details

    • ManifestFile

      public ManifestFile()
      Default constructor instantiating object with null values
  • Method Details

    • getDocument

      public DSSDocument getDocument()
      Gets the DSSDocument representing the manifest
      Returns:
      DSSDocument
    • setDocument

      public void setDocument(DSSDocument document)
      Sets the manifest document
      Parameters:
      document - DSSDocument
    • getFilename

      public String getFilename()
      Gets the manifest document's filename
      Returns:
      String
    • getSignatureFilename

      public String getSignatureFilename()
      Gets the signature filename
      Returns:
      String
    • setSignatureFilename

      public void setSignatureFilename(String signatureFilename)
      Sets the signature filename
      Parameters:
      signatureFilename - String
    • getDigestValue

      public byte[] getDigestValue(DigestAlgorithm digestAlgorithm)
      Gets digest value of the manifest document for the given digestAlgorithm
      Parameters:
      digestAlgorithm - DigestAlgorithm to compute digest
      Returns:
      byte array representing the digest value
    • getEntries

      public List<ManifestEntry> getEntries()
      Gets a list of ManifestEntrys
      Returns:
      a list of ManifestEntrys
    • setEntries

      public void setEntries(List<ManifestEntry> entries)
      Sets a list of ManifestEntrys
      Parameters:
      entries - a list of ManifestEntrys
    • getManifestType

      public ASiCManifestTypeEnum getManifestType()
      Gets a type of the ASiC Manifest file
      Returns:
      ASiCManifestTypeEnum
    • setManifestType

      public void setManifestType(ASiCManifestTypeEnum manifestType)
      Sets a type of the ASiC Manifest file
      Parameters:
      manifestType - ASiCManifestTypeEnum
    • getRootFile

      public ManifestEntry getRootFile()
      Returns a ManifestEntry with argument Rootfile="true"
      Returns:
      ManifestEntry if the rootfile is found, FALSE otherwise
    • isDocumentCovered

      public boolean isDocumentCovered(String documentName)
      Checks if the document with documentName is covered by the Manifest
      Parameters:
      documentName - String to check
      Returns:
      TRUE if the document with the given name is covered, FALSE otherwise