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 Summary
Constructors Constructor Description ManifestBuilder(DigestAlgorithm digestAlgorithm, List<DSSDocument> documents)
Constructor for the builder (the Id of the Manifest tag will be equals to "manifest")ManifestBuilder(String manifestId, DigestAlgorithm digestAlgorithm, List<DSSDocument> documents)
Constructor for the builderManifestBuilder(String manifestId, DigestAlgorithm digestAlgorithm, List<DSSDocument> documents, DSSNamespace xmldsigNamespace)
Constructor for the builder -
Method Summary
Modifier and Type Method Description DSSDocument
build()
-
Constructor Details
-
ManifestBuilder
Constructor for the builder (the Id of the Manifest tag will be equals to "manifest")- Parameters:
digestAlgorithm
- the digest algorithm to be useddocuments
- 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 tagdigestAlgorithm
- the digest algorithm to be useddocuments
- 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 tagdigestAlgorithm
- the digest algorithm to be useddocuments
- the documents to includexmldsigNamespace
- the xmldsig namespace definition
-
-
Method Details