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
FieldsModifier and TypeFieldDescriptionprotected final CertificateVerifierThe CertificateVerifier used for a certificate chain validationprotected final TSPSourceThe TSPSource to use for timestamp requests -
Constructor Summary
ConstructorsConstructorDescriptionASiCWithCAdESSignatureExtension(CertificateVerifier certificateVerifier, TSPSource tspSource) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertExtendSignaturePossible(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks if the signature extension is possibleextend(ASiCContent asicContent, CAdESSignatureParameters parameters) This method is used to extend signatures within theASiCContentprotected booleanextensionRequired(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks whether the signature extension is required for the particular documentprotected DigestAlgorithmReturns params.referenceDigestAlgorithm if exists, params.digestAlgorithm otherwiseprotected booleanisCoveredByManifest(ASiCContent asicContent, DSSDocument signature) Verifies whether thesignaturedocument 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-CertificateVerifiertspSource-TSPSource
-
-
Method Details
-
extend
This method is used to extend signatures within theASiCContent- Parameters:
asicContent-ASiCContentparameters-CAdESSignatureParameters- Returns:
ASiCContentwith 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-CAdESSignatureParameterscoveredByManifest- 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-CAdESSignatureParameterscoveredByManifest- defines whether the signature document is covered by an archive manifest
-
isCoveredByManifest
Verifies whether thesignaturedocument is covered by an Archive Manifest- Parameters:
asicContent-ASiCContentsignature-DSSDocument- Returns:
- TRUE if the signature is covered by an archive manifest, FALSE otherwise
-