Class ASiCEWithCAdESArchiveManifestBuilder

java.lang.Object
eu.europa.esig.dss.asic.cades.signature.manifest.AbstractManifestBuilder
eu.europa.esig.dss.asic.cades.signature.manifest.ASiCEWithCAdESArchiveManifestBuilder

public class ASiCEWithCAdESArchiveManifestBuilder extends AbstractManifestBuilder
This class is used to generate the ASiCArchiveManifest.xml content (ASiC-E) Sample:
 
 		<asic:ASiCManifest xmlns:asic="http://uri.etsi.org/02918/v1.2.1#">
			<asic:SigReference URI="META-INF/archive_timestamp.tst" MimeType="application/vnd.etsi.timestamp-token"/>
			<asic:DataObjectReference URI="META-INF/signature.p7s" MimeType="application/x-pkcs7-signature">
				<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
				<DigestValue>3Qeos8...</DigestValue>
			</asic:DataObjectReference>
			<asic:DataObjectReference URI="toBeSigned.txt" MimeType="text/plain">
				<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/> 
				<DigestValue>JJZt...</DigestValue>
			</asic:DataObjectReference>
			<asic:DataObjectReference URI="META-INF/ASiCManifest_1.xml" MimeType="text/xml">
				<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
				<DigestValue>g5dY...</DigestValue>
			</asic:DataObjectReference>
 		</asic:ASiCManifest>
 
 
  • Constructor Details

    • ASiCEWithCAdESArchiveManifestBuilder

      public ASiCEWithCAdESArchiveManifestBuilder(ASiCContent asicContent, DSSDocument lastArchiveManifest, DigestAlgorithm digestAlgorithm, String timestampFileUri)
      The default constructor
      Parameters:
      asicContent - ASiCContent
      lastArchiveManifest - DSSDocument the last archive manifest "ASiCArchiveManifest.xml"
      digestAlgorithm - DigestAlgorithm to use for digest calculation
      timestampFileUri - String the name of the timestamp to add
  • Method Details

    • build

      public DSSDocument build()
      Builds the ArchiveManifest and returns the Document Node
      Returns:
      DSSDocument archive manifest