Class ManifestBuilder
java.lang.Object
eu.europa.esig.dss.xades.signature.ManifestBuilder
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
ConstructorDescriptionManifestBuilder
(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 builderManifestBuilder
(String manifestId, List<DSSReference> references) The constructor with custom references and default namespaceManifestBuilder
(String manifestId, List<DSSReference> references, DSSNamespace xmldsigNamespace) The constructor with custom referencesManifestBuilder
(List<DSSReference> references) The constructor with custom references and default manifest id -
Method Summary
-
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
-
ManifestBuilder
The constructor with custom references and default manifest id- Parameters:
references
- a list of customDSSReference
s to be incorporated into the Manifest
-
ManifestBuilder
The constructor with custom references and default namespace- Parameters:
manifestId
-String
the id of the Manifest elementreferences
- a list of customDSSReference
s 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 elementreferences
- a list of customDSSReference
s to be incorporated into the ManifestxmldsigNamespace
-String
the xmldsig namespace definition
-
-
Method Details
-
build
Builds the Manifest- Returns:
DSSDocument
-