Class ASiCEWithCAdESManifestBuilder
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
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>
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
asicContent, digestAlgorithm, sigReferenceUri
-
Constructor Summary
ModifierConstructorDescriptionprotected
ASiCEWithCAdESManifestBuilder
(ASiCContent asicContent, String documentFilename, DigestAlgorithm digestAlgorithm) The default constructorprotected
ASiCEWithCAdESManifestBuilder
(ASiCContent asicContent, String documentFilename, DigestAlgorithm digestAlgorithm, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory -
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns a final filename of the manifestprotected ASiCContentDocumentFilter
Gets anASiCContentDocumentFilter
used to filter the documents to be referenced within ASiC ManifestMethods inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
addDataObjectReference, addDataObjectReferences, addSigReference, build, buildDom, createRootElement, getAsicContentDocumentFilter, getSigReferenceMimeType, isRootfile, setAsicContentDocumentFilter, toDSSDocument
-
Constructor Details
-
ASiCEWithCAdESManifestBuilder
protected ASiCEWithCAdESManifestBuilder(ASiCContent asicContent, String documentFilename, DigestAlgorithm digestAlgorithm) The default constructor- Parameters:
asicContent
-ASiCContent
representing container's document structuredocumentFilename
-String
filename of the document associated with the manifestdigestAlgorithm
-DigestAlgorithm
to use for reference digest computation
-
ASiCEWithCAdESManifestBuilder
protected ASiCEWithCAdESManifestBuilder(ASiCContent asicContent, String documentFilename, DigestAlgorithm digestAlgorithm, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory- Parameters:
asicContent
-ASiCContent
representing container's document structuredocumentFilename
-String
filename of the document associated with the manifestdigestAlgorithm
-DigestAlgorithm
to use for reference digest computationasicFilenameFactory
-ASiCWithCAdESFilenameFactory
-
-
Method Details
-
initDefaultAsicContentDocumentFilter
Description copied from class:AbstractASiCManifestBuilder
Gets anASiCContentDocumentFilter
used to filter the documents to be referenced within ASiC Manifest- Specified by:
initDefaultAsicContentDocumentFilter
in classAbstractASiCManifestBuilder
- Returns:
ASiCContentDocumentFilter
-
getManifestFilename
Description copied from class:AbstractASiCManifestBuilder
Returns a final filename of the manifest- Specified by:
getManifestFilename
in classAbstractASiCManifestBuilder
- Returns:
String
-