Class ManifestBuilder

java.lang.Object
eu.europa.esig.dss.xades.signature.ManifestBuilder

public class ManifestBuilder extends Object
This class builds a ds:Manifest element

	<ds:Manifest Id="manifest">
		<ds:Reference URI="l_19420170726bg.pdf">
			<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/>
			<ds:DigestValue>EUcwRQ....</ds:DigestValue>
		</ds:Reference>
		<ds:Reference URI="l_19420170726cs.pdf">
			<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512"/>
			<ds:DigestValue>NQNnr+F...</ds:DigestValue>
		</ds:Reference>
		...
	</ds:Manifest>

  • Constructor Details

    • ManifestBuilder

      public ManifestBuilder(DigestAlgorithm digestAlgorithm, List<DSSDocument> documents)
      Constructor for the builder (the Id of the Manifest tag will be equals to "manifest")
      Parameters:
      digestAlgorithm - the digest algorithm to be used
      documents - the documents to include
    • ManifestBuilder

      public ManifestBuilder(String manifestId, DigestAlgorithm digestAlgorithm, List<DSSDocument> documents)
      Constructor for the builder
      Parameters:
      manifestId - the Id of the Manifest tag
      digestAlgorithm - the digest algorithm to be used
      documents - the documents to include
    • ManifestBuilder

      public ManifestBuilder(String manifestId, DigestAlgorithm digestAlgorithm, List<DSSDocument> documents, DSSNamespace xmldsigNamespace)
      Constructor for the builder
      Parameters:
      manifestId - the Id of the Manifest tag
      digestAlgorithm - the digest algorithm to be used
      documents - the documents to include
      xmldsigNamespace - the xmldsig namespace definition
    • ManifestBuilder

      public ManifestBuilder(List<DSSReference> references)
      The constructor with custom references and default manifest id
      Parameters:
      references - a list of custom DSSReferences to be incorporated into the Manifest
    • ManifestBuilder

      public ManifestBuilder(String manifestId, List<DSSReference> references)
      The constructor with custom references and default namespace
      Parameters:
      manifestId - String the id of the Manifest element
      references - a list of custom DSSReferences to be incorporated into the Manifest
    • ManifestBuilder

      public ManifestBuilder(String manifestId, List<DSSReference> references, DSSNamespace xmldsigNamespace)
      The constructor with custom references
      Parameters:
      manifestId - String the id of the Manifest element
      references - a list of custom DSSReferences to be incorporated into the Manifest
      xmldsigNamespace - String the xmldsig namespace definition
  • Method Details