Class ASiCWithCAdESLevelBaselineLTA
java.lang.Object
eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESSignatureExtension
eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESLevelBaselineLTA
- All Implemented Interfaces:
Serializable
This class is used to extend an ASiC with CAdES signatures to LTA-level
- See Also:
-
Field Summary
Fields inherited from class eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESSignatureExtension
certificateVerifier, tspSource
-
Constructor Summary
ConstructorDescriptionASiCWithCAdESLevelBaselineLTA
(CertificateVerifier certificateVerifier, TSPSource tspSource) Default constructorASiCWithCAdESLevelBaselineLTA
(CertificateVerifier certificateVerifier, TSPSource tspSource, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory -
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
extend
(ASiCContent asicContent, DigestAlgorithm digestAlgorithm) ExtendsasicContent
with an ArchiveManifest timestamp NOTE: This method is to be used for a direct timestamping with an ArchiveManifest, without in-depth signature attributes (the signature extension is still applied).protected boolean
extensionRequired
(CAdESSignatureParameters parameters, boolean coveredByManifest) Checks whether the signature extension is required for the particular documentMethods inherited from class eu.europa.esig.dss.asic.cades.signature.ASiCWithCAdESSignatureExtension
getReferenceDigestAlgorithmOrDefault, isCoveredByManifest
-
Constructor Details
-
ASiCWithCAdESLevelBaselineLTA
Default constructor- Parameters:
certificateVerifier
-CertificateVerifier
tspSource
-TSPSource
-
ASiCWithCAdESLevelBaselineLTA
public ASiCWithCAdESLevelBaselineLTA(CertificateVerifier certificateVerifier, TSPSource tspSource, ASiCWithCAdESFilenameFactory asicFilenameFactory) Constructor with filename factory- Parameters:
certificateVerifier
-CertificateVerifier
tspSource
-TSPSource
asicFilenameFactory
-ASiCWithCAdESFilenameFactory
-
-
Method Details
-
extend
Description copied from class:ASiCWithCAdESSignatureExtension
This method is used to extend signatures within theASiCContent
- Overrides:
extend
in classASiCWithCAdESSignatureExtension
- Parameters:
asicContent
-ASiCContent
parameters
-CAdESSignatureParameters
- Returns:
ASiCContent
with extended signature documents
-
extend
ExtendsasicContent
with an ArchiveManifest timestamp NOTE: This method is to be used for a direct timestamping with an ArchiveManifest, without in-depth signature attributes (the signature extension is still applied). Useextend(ASiCContent, CAdESSignatureParameters)
method for a proper signature(s) extension- Parameters:
asicContent
-ASiCContent
to extenddigestAlgorithm
-DigestAlgorithm
to be used for ArchiveManifest and timestamp creation- Returns:
- extended
ASiCContent
-
extensionRequired
Description copied from class:ASiCWithCAdESSignatureExtension
Checks whether the signature extension is required for the particular document- Overrides:
extensionRequired
in classASiCWithCAdESSignatureExtension
- 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) Description copied from class:ASiCWithCAdESSignatureExtension
Checks if the signature extension is possible- Overrides:
assertExtendSignaturePossible
in classASiCWithCAdESSignatureExtension
- Parameters:
parameters
-CAdESSignatureParameters
coveredByManifest
- defines whether the signature document is covered by an archive manifest
-