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 void
checkSignatureIntegrity(JAdESSignature jadesSignature)
This method checks the signature integrity and throws aDSSException
if the signature is broken.protected void
extendSignature(JAdESSignature jadesSignature, JAdESSignatureParameters params)
Extends the signatureprotected JsonObject
getRVals(List<CRLToken> crlsToAdd, List<OCSPToken> ocspsToAdd)
Builds and returns 'rVals' JsonObjectprotected ValidationDataForInclusion
getValidationDataForInclusion(JAdESSignature jadesSignature, ValidationContext validationContext)
Gets the validation data to be included into the signatureprotected org.jose4j.json.internal.json_simple.JSONArray
getXVals(Set<CertificateToken> certificateValuesToAdd)
Builds and returns 'xVals' JSONArrayMethods inherited from class eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
extendSignatures, setTspSource
Methods inherited from class eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
assertEtsiUComponentsConsistent, assertIsJSONSerializationType, toJWSJsonSerializationObjectToExtend
-
Constructor Details
-
JAdESLevelBaselineLT
The default constructor- Parameters:
certificateVerifier
-CertificateVerifier
to use
-
-
Method Details
-
extendSignature
Description copied from class:JAdESLevelBaselineT
Extends the signature- Overrides:
extendSignature
in classJAdESLevelBaselineT
- Parameters:
jadesSignature
-JAdESSignature
to be extendedparams
-JAdESSignatureParameters
the extension parameters
-
getValidationDataForInclusion
protected ValidationDataForInclusion getValidationDataForInclusion(JAdESSignature jadesSignature, ValidationContext validationContext)Gets the validation data to be included into the signature- Parameters:
jadesSignature
-JAdESSignature
to get validation data to be included forvalidationContext
-ValidationContext
used 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 ofCertificateToken
s to add- Returns:
JSONArray
'xVals' JSONArray
-
getRVals
Builds and returns 'rVals' JsonObject- Parameters:
crlsToAdd
- a list ofCRLToken
s to addocspsToAdd
- a list ofOCSPToken
s to add- Returns:
JsonObject
'rVals' object
-
checkSignatureIntegrity
This method checks the signature integrity and throws aDSSException
if the signature is broken.- Parameters:
jadesSignature
-JAdESSignature
to verify- Throws:
DSSException
- in case of the cryptographic signature verification fails
-