Class ManifestFile

java.lang.Object
eu.europa.esig.dss.validation.ManifestFile

public class ManifestFile
extends Object
Represents a parsed Manifest File object
  • Constructor Details

    • ManifestFile

      public ManifestFile()
  • Method Details

    • 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
    • getDigestBase64String

      public String getDigestBase64String​(DigestAlgorithm digestAlgorithm)
      Gets base64 encoded digest string of the manifest document for the given digestAlgorithm
      Parameters:
      digestAlgorithm - DigestAlgorithm to compute digest
      Returns:
      String base64-encoded 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
    • 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

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