Class ASiCWithCAdESUtils

java.lang.Object
eu.europa.esig.dss.asic.cades.validation.ASiCWithCAdESUtils

public class ASiCWithCAdESUtils extends Object
Class containing utils methods for dealing with ASiC with CAdES container
  • Field Details

    • DEFAULT_ARCHIVE_MANIFEST_FILENAME

      public static final String DEFAULT_ARCHIVE_MANIFEST_FILENAME
      The default Archive Manifest filename
      See Also:
  • Method Details

    • getSignedDocument

      public static DSSDocument getSignedDocument(ASiCContent extractResult, String signatureFilename)
      Returns a list of signed documents by a signature with a given signatureFilename
      Parameters:
      extractResult - ASiCContent representing an ASiC container extraction result
      signatureFilename - String a filename of a signature to get extracted document for
      Returns:
      a list of DSSDocuments
    • isCoveredByManifest

      public static boolean isCoveredByManifest(List<DSSDocument> manifestDocuments, String filename)
      Checks if a document (e.g. a signature) with the given filename is covered by a manifest
      Parameters:
      manifestDocuments - a list of manifest DSSDocuments extracted from the archive
      filename - String a filename of a document to check
      Returns:
      TRUE if the document is covered by a manifest, FALSE otherwise