Class CAdESLevelBaselineLT
java.lang.Object
eu.europa.esig.dss.cades.signature.CAdESSignatureExtension
eu.europa.esig.dss.cades.signature.CAdESLevelBaselineT
eu.europa.esig.dss.cades.signature.CAdESLevelBaselineLT
- Direct Known Subclasses:
CAdESLevelBaselineLTA
This class holds the CAdES-LT signature profiles
-
Field Summary
Fields inherited from class CAdESSignatureExtension
certificateVerifier, resourcesHandlerBuilder, tspSource -
Constructor Summary
ConstructorsConstructorDescriptionCAdESLevelBaselineLT(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource, eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) The default constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected eu.europa.esig.dss.cms.CMSextendCMSSignatures(eu.europa.esig.dss.cms.CMS cms, CAdESSignatureParameters parameters, List<String> signatureIdsToExtend) This method extends the signatures in thecmsSignedDatawith ids listed withinsignatureIdsToExtendprotected List<eu.europa.esig.dss.spi.signature.AdvancedSignature> getExtendToLTLevelSignatures(List<eu.europa.esig.dss.spi.signature.AdvancedSignature> signatures, List<String> signatureIdsToExtend) Returns a list of signatures to be extended according to th list ofsignatureIdsToExtendprotected booleanincludesATSv2(eu.europa.esig.dss.cms.CMS cms) Verifies if the CMS contains an ATSTv2Methods inherited from class CAdESLevelBaselineT
getSignatureRequirementsChecker
-
Constructor Details
-
CAdESLevelBaselineLT
public CAdESLevelBaselineLT(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource, eu.europa.esig.dss.spi.validation.CertificateVerifier certificateVerifier) The default constructor.- Parameters:
tspSource-TSPSourcefor a timestamp creationcertificateVerifier-CertificateVerifier
-
-
Method Details
-
extendCMSSignatures
protected eu.europa.esig.dss.cms.CMS extendCMSSignatures(eu.europa.esig.dss.cms.CMS cms, CAdESSignatureParameters parameters, List<String> signatureIdsToExtend) Description copied from class:CAdESSignatureExtensionThis method extends the signatures in thecmsSignedDatawith ids listed withinsignatureIdsToExtend- Overrides:
extendCMSSignaturesin classCAdESLevelBaselineT- Parameters:
cms-CMScontaining the signatures to be extendedparameters-CAdESSignatureParameterssignatureIdsToExtend- a list ofStringsignature Ids to be extended- Returns:
CMS
-
includesATSv2
protected boolean includesATSv2(eu.europa.esig.dss.cms.CMS cms) Verifies if the CMS contains an ATSTv2- Parameters:
cms-CMSto check- Returns:
- TRUE if the
cmscontains an ATSTv2, FALSE otherwise
-
getExtendToLTLevelSignatures
protected List<eu.europa.esig.dss.spi.signature.AdvancedSignature> getExtendToLTLevelSignatures(List<eu.europa.esig.dss.spi.signature.AdvancedSignature> signatures, List<String> signatureIdsToExtend) Returns a list of signatures to be extended according to th list ofsignatureIdsToExtend- Parameters:
signatures- a list ofAdvancedSignaturessignatureIdsToExtend- a list ofStringsignature identifiers to be extended- Returns:
- a list of
AdvancedSignatures
-