Class ASiCEWithCAdESManifestBuilder

java.lang.Object
eu.europa.esig.dss.asic.cades.signature.manifest.AbstractManifestBuilder
eu.europa.esig.dss.asic.cades.signature.manifest.ASiCEWithCAdESManifestBuilder
Direct Known Subclasses:
ASiCWithCAdESSignatureManifestBuilder, ASiCWithCAdESTimestampManifestBuilder

public abstract class ASiCEWithCAdESManifestBuilder extends AbstractManifestBuilder
This class is used to generate the ASiCManifest.xml content (ASiC-E) Sample:
 
 		<asic:ASiCManifest xmlns:asic="http://uri.etsi.org/02918/v1.2.1#">
			<asic:SigReference MimeType="application/pkcs7-signature" URI="META-INF/signature001.p7s">
				<asic:DataObjectReference URI="document.txt">
					<DigestMethod xmlns="http://www.w3.org/2000/09/xmldsig#" Algorithm=
"http://www.w3.org/2001/04/xmlenc#sha256"/>
					<DigestValue xmlns=
"http://www.w3.org/2000/09/xmldsig#">OuL0HMJE899y+uJtyNnTt5B/gFrrw8adNczI+9w9GDQ=</DigestValue>
				</asic:DataObjectReference>
			</asic:SigReference>
		</asic:ASiCManifest>
 
 
  • Constructor Details

    • ASiCEWithCAdESManifestBuilder

      protected ASiCEWithCAdESManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String documentUri)
      The default constructor
      Parameters:
      asicContent - ASiCContent representing container's document structure
      digestAlgorithm - DigestAlgorithm to use for reference digest computation
      documentUri - String filename of the document associated with the manifest
    • ASiCEWithCAdESManifestBuilder

      protected ASiCEWithCAdESManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String documentUri, ASiCWithCAdESFilenameFactory asicFilenameFactory)
      Constructor with filename factory
      Parameters:
      asicContent - ASiCContent representing container's document structure
      digestAlgorithm - DigestAlgorithm to use for reference digest computation
      documentUri - String filename of the document associated with the manifest
      asicFilenameFactory - ASiCWithCAdESFilenameFactory
  • Method Details

    • build

      public DSSDocument build()
      Builds the manifest and returns the document
      Returns:
      DSSDocument
    • getSigReferenceMimeType

      protected abstract MimeType getSigReferenceMimeType()
      Returns the MimeType to be used for a signature reference (signature or timestamp)
      Returns:
      MimeType