Class JAdESLevelBaselineLT
java.lang.Object
eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
eu.europa.esig.dss.jades.signature.JAdESLevelBaselineLT
- All Implemented Interfaces:
SignatureExtension<JAdESSignatureParameters>
- Direct Known Subclasses:
JAdESLevelBaselineLTA
public class JAdESLevelBaselineLT extends JAdESLevelBaselineT
Creates an LT-level of a JAdES signature
-
Field Summary
Fields inherited from class eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
certificateVerifier, tspSource -
Constructor Summary
Constructors Constructor Description JAdESLevelBaselineLT(CertificateVerifier certificateVerifier)The default constructor -
Method Summary
Modifier and Type Method Description protected voidcheckSignatureIntegrity(JAdESSignature jadesSignature)This method checks the signature integrity and throws aDSSExceptionif the signature is broken.protected voidextendSignature(JAdESSignature jadesSignature, JAdESSignatureParameters params)Extends the signatureprotected JsonObjectgetRVals(List<CRLToken> crlsToAdd, List<OCSPToken> ocspsToAdd)Builds and returns 'rVals' JsonObjectprotected ValidationDataForInclusiongetValidationDataForInclusion(JAdESSignature jadesSignature, ValidationContext validationContext)Gets the validation data to be included into the signatureprotected org.jose4j.json.internal.json_simple.JSONArraygetXVals(Set<CertificateToken> certificateValuesToAdd)Builds and returns 'xVals' JSONArrayMethods inherited from class eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
extendSignatures, setTspSourceMethods inherited from class eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
assertEtsiUComponentsConsistent, assertIsJSONSerializationType, toJWSJsonSerializationObjectToExtend
-
Constructor Details
-
JAdESLevelBaselineLT
The default constructor- Parameters:
certificateVerifier-CertificateVerifierto use
-
-
Method Details
-
extendSignature
Description copied from class:JAdESLevelBaselineTExtends the signature- Overrides:
extendSignaturein classJAdESLevelBaselineT- Parameters:
jadesSignature-JAdESSignatureto be extendedparams-JAdESSignatureParametersthe extension parameters
-
getValidationDataForInclusion
protected ValidationDataForInclusion getValidationDataForInclusion(JAdESSignature jadesSignature, ValidationContext validationContext)Gets the validation data to be included into the signature- Parameters:
jadesSignature-JAdESSignatureto get validation data to be included forvalidationContext-ValidationContextused to process the signature- Returns:
ValidationDataForInclusion
-
getXVals
protected org.jose4j.json.internal.json_simple.JSONArray getXVals(Set<CertificateToken> certificateValuesToAdd)Builds and returns 'xVals' JSONArray- Parameters:
certificateValuesToAdd- a set ofCertificateTokens to add- Returns:
JSONArray'xVals' JSONArray
-
getRVals
Builds and returns 'rVals' JsonObject- Parameters:
crlsToAdd- a list ofCRLTokens to addocspsToAdd- a list ofOCSPTokens to add- Returns:
JsonObject'rVals' object
-
checkSignatureIntegrity
This method checks the signature integrity and throws aDSSExceptionif the signature is broken.- Parameters:
jadesSignature-JAdESSignatureto verify- Throws:
DSSException- in case of the cryptographic signature verification fails
-