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
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 Summary
ModifierConstructorDescriptionprotected
ASiCEWithCAdESManifestBuilder
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String documentUri) The default constructorprotected
ASiCEWithCAdESManifestBuilder
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String documentUri, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory -
Method Summary
Methods inherited from class eu.europa.esig.dss.asic.cades.signature.manifest.AbstractManifestBuilder
addDataObjectReference, addSigReference
-
Constructor Details
-
ASiCEWithCAdESManifestBuilder
protected ASiCEWithCAdESManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String documentUri) The default constructor- Parameters:
asicContent
-ASiCContent
representing container's document structuredigestAlgorithm
-DigestAlgorithm
to use for reference digest computationdocumentUri
-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 structuredigestAlgorithm
-DigestAlgorithm
to use for reference digest computationdocumentUri
-String
filename of the document associated with the manifestasicFilenameFactory
-ASiCWithCAdESFilenameFactory
-
-
Method Details
-
build
Builds the manifest and returns the document- Returns:
DSSDocument
-
getSigReferenceMimeType
Returns theMimeType
to be used for a signature reference (signature or timestamp)- Returns:
MimeType
-