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:
JAdESLevelBaselineExtension
,SignatureExtension<JAdESSignatureParameters>
- Direct Known Subclasses:
JAdESLevelBaselineLTA
Creates an LT-level of a JAdES signature
-
Field Summary
Fields inherited from class eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
certificateVerifier, documentValidator, tspSource
-
Constructor Summary
ConstructorDescriptionJAdESLevelBaselineLT
(CertificateVerifier certificateVerifier) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertSignatureValid
(JAdESSignature jadesSignature, JAdESSignatureParameters params) This method checks the signature integrity and throws aDSSException
if the signature is broken.protected void
extendSignatures
(List<AdvancedSignature> signatures, JAdESSignatureParameters params) Extends the signaturesprotected JsonObject
Builds and returns 'rVals' JsonObjectprotected org.jose4j.json.internal.json_simple.JSONArray
getXVals
(Set<CertificateToken> certificateValuesToAdd) Builds and returns 'xVals' JSONArrayprotected void
incorporateRVals
(JAdESEtsiUHeader etsiUHeader, Set<CRLToken> crlsToAdd, Set<OCSPToken> ocspsToAdd, boolean base64UrlEncoded) Incorporates the provided set of certificates intoetsiUHeader
protected void
incorporateXVals
(JAdESEtsiUHeader etsiUHeader, Set<CertificateToken> certificateValuesToAdd, boolean base64UrlEncoded) Incorporates the provided set of certificates intoetsiUHeader
Methods inherited from class eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
extendSignatures, setOperationKind, setTspSource
Methods inherited from class eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
assertEtsiUComponentsConsistent, assertJSONSerializationObjectMayBeExtended, assertJWSJsonSerializationObjectValid
-
Constructor Details
-
JAdESLevelBaselineLT
The default constructor- Parameters:
certificateVerifier
-CertificateVerifier
to use
-
-
Method Details
-
extendSignatures
protected void extendSignatures(List<AdvancedSignature> signatures, JAdESSignatureParameters params) Description copied from class:JAdESLevelBaselineT
Extends the signatures- Overrides:
extendSignatures
in classJAdESLevelBaselineT
- Parameters:
signatures
- a list ofAdvancedSignature
s to be extendedparams
-JAdESSignatureParameters
the extension parameters
-
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
-
incorporateXVals
protected void incorporateXVals(JAdESEtsiUHeader etsiUHeader, Set<CertificateToken> certificateValuesToAdd, boolean base64UrlEncoded) Incorporates the provided set of certificates intoetsiUHeader
- Parameters:
etsiUHeader
-JAdESEtsiUHeader
to updatecertificateValuesToAdd
- a set ofCertificateToken
s to addbase64UrlEncoded
- if members of the etsiU array shall be base64UrlEncoded
-
getRVals
Builds and returns 'rVals' JsonObject- Parameters:
crlsToAdd
- a set ofCRLToken
s to addocspsToAdd
- a set ofOCSPToken
s to add- Returns:
JsonObject
'rVals' object
-
incorporateRVals
protected void incorporateRVals(JAdESEtsiUHeader etsiUHeader, Set<CRLToken> crlsToAdd, Set<OCSPToken> ocspsToAdd, boolean base64UrlEncoded) Incorporates the provided set of certificates intoetsiUHeader
- Parameters:
etsiUHeader
-JAdESEtsiUHeader
to updatecrlsToAdd
- a set ofCRLToken
s to addocspsToAdd
- a set ofOCSPToken
s to addbase64UrlEncoded
- if members of the etsiU array shall be base64UrlEncoded
-
assertSignatureValid
protected void assertSignatureValid(JAdESSignature jadesSignature, JAdESSignatureParameters params) throws DSSException This method checks the signature integrity and throws aDSSException
if the signature is broken.- Parameters:
jadesSignature
-JAdESSignature
to verifyparams
-JAdESSignatureParameters
the used signature parameters- Throws:
DSSException
- in case of the cryptographic signature verification fails
-