Class ASiCWithCAdESSignatureManifestBuilder
java.lang.Object
eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
eu.europa.esig.dss.asic.cades.signature.manifest.ASiCEWithCAdESManifestBuilder
eu.europa.esig.dss.asic.cades.signature.manifest.ASiCWithCAdESSignatureManifestBuilder
This class is used to create a Manifest file for a signature creation
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
asicContent, digestAlgorithm, sigReferenceUri
-
Constructor Summary
ConstructorDescriptionASiCWithCAdESSignatureManifestBuilder
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String signatureFilename) The default constructorASiCWithCAdESSignatureManifestBuilder
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String signatureFilename, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory -
Method Summary
Modifier and TypeMethodDescriptionprotected MimeType
(Optional) Returns theMimeType
to be used for a signature reference (signature or timestamp)setAsicContentDocumentFilter
(ASiCContentDocumentFilter asicContentDocumentFilter) Sets anASiCContentDocumentFilter
used to filter the documents to compute hashes for.Methods inherited from class eu.europa.esig.dss.asic.cades.signature.manifest.ASiCEWithCAdESManifestBuilder
getManifestFilename, initDefaultAsicContentDocumentFilter
Methods inherited from class eu.europa.esig.dss.asic.common.AbstractASiCManifestBuilder
addDataObjectReference, addDataObjectReferences, addSigReference, build, buildDom, createRootElement, getAsicContentDocumentFilter, isRootfile, toDSSDocument
-
Constructor Details
-
ASiCWithCAdESSignatureManifestBuilder
public ASiCWithCAdESSignatureManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String signatureFilename) The default constructor- Parameters:
asicContent
-ASiCContent
representing container's document structuredigestAlgorithm
-DigestAlgorithm
to use for reference digest computationsignatureFilename
-String
filename of the signature associated with the manifest
-
ASiCWithCAdESSignatureManifestBuilder
public ASiCWithCAdESSignatureManifestBuilder(ASiCContent asicContent, DigestAlgorithm digestAlgorithm, String signatureFilename, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory- Parameters:
asicContent
-ASiCContent
representing container's document structuredigestAlgorithm
-DigestAlgorithm
to use for reference digest computationsignatureFilename
-String
filename of the signature associated with the manifestasicFilenameFactory
-ASiCWithCAdESFilenameFactory
-
-
Method Details
-
getSigReferenceMimeType
Description copied from class:AbstractASiCManifestBuilder
(Optional) Returns theMimeType
to be used for a signature reference (signature or timestamp)- Specified by:
getSigReferenceMimeType
in classAbstractASiCManifestBuilder
- Returns:
MimeType
-
setAsicContentDocumentFilter
public ASiCWithCAdESSignatureManifestBuilder setAsicContentDocumentFilter(ASiCContentDocumentFilter asicContentDocumentFilter) Description copied from class:AbstractASiCManifestBuilder
Sets anASiCContentDocumentFilter
used to filter the documents to compute hashes for. When not set, a defaultASiCContentDocumentFilter
is used for the given manifest type.- Overrides:
setAsicContentDocumentFilter
in classAbstractASiCManifestBuilder
- Parameters:
asicContentDocumentFilter
-ASiCContentDocumentFilter
- Returns:
- this
ASiCEvidenceRecordDigestBuilder
-