Class ASiCWithCAdESSignatureExtension
java.lang.Object
eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESSignatureExtension
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ASiCWithCAdESLevelBaselineLTA
This class is used to extend an ASiC with CAdES signature
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final CertificateVerifier
The CertificateVerifier used for a certificate chain validationprotected final TSPSource
The TSPSource to use for timestamp requests -
Constructor Summary
ConstructorDescriptionASiCWithCAdESSignatureExtension
(CertificateVerifier certificateVerifier, TSPSource tspSource) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertExtendSignaturePossible
(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks if the signature extension is possibleextend
(ASiCContent asicContent, CAdESSignatureParameters parameters) This method is used to extend signatures within theASiCContent
protected boolean
extensionRequired
(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks whether the signature extension is required for the particular documentprotected DigestAlgorithm
Returns params.referenceDigestAlgorithm if exists, params.digestAlgorithm otherwiseprotected boolean
isCoveredByManifest
(ASiCContent asicContent, DSSDocument signature) Verifies whether thesignature
document is covered by an Archive Manifest
-
Field Details
-
certificateVerifier
The CertificateVerifier used for a certificate chain validation -
tspSource
The TSPSource to use for timestamp requests
-
-
Constructor Details
-
ASiCWithCAdESSignatureExtension
public ASiCWithCAdESSignatureExtension(CertificateVerifier certificateVerifier, TSPSource tspSource) Default constructor- Parameters:
certificateVerifier
-CertificateVerifier
tspSource
-TSPSource
-
-
Method Details
-
extend
This method is used to extend signatures within theASiCContent
- Parameters:
asicContent
-ASiCContent
parameters
-CAdESSignatureParameters
- Returns:
ASiCContent
with extended signature documents
-
getReferenceDigestAlgorithmOrDefault
Returns params.referenceDigestAlgorithm if exists, params.digestAlgorithm otherwise- Parameters:
params
-CAdESSignatureParameters
- Returns:
DigestAlgorithm
-
extensionRequired
Checks whether the signature extension is required for the particular document- Parameters:
parameters
-CAdESSignatureParameters
coveredByManifest
- defines whether the signature document is covered by an archive manifest- Returns:
- TRUE if the signature extension is required, FALSE otherwise
-
assertExtendSignaturePossible
protected void assertExtendSignaturePossible(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks if the signature extension is possible- Parameters:
parameters
-CAdESSignatureParameters
coveredByManifest
- defines whether the signature document is covered by an archive manifest
-
isCoveredByManifest
Verifies whether thesignature
document is covered by an Archive Manifest- Parameters:
asicContent
-ASiCContent
signature
-DSSDocument
- Returns:
- TRUE if the signature is covered by an archive manifest, FALSE otherwise
-