Class JAdESLevelBaselineT
java.lang.Object
eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
eu.europa.esig.dss.jades.signature.JAdESLevelBaselineT
- All Implemented Interfaces:
JAdESLevelBaselineExtension,SignatureExtension<JAdESSignatureParameters>
- Direct Known Subclasses:
JAdESLevelBaselineLT
public class JAdESLevelBaselineT
extends JAdESExtensionBuilder
implements JAdESLevelBaselineExtension
Creates a T-level of a JAdES signature
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final CertificateVerifierThe CertificateVerifier to useprotected AbstractJWSDocumentAnalyzerThe cached instance of a document validatorprotected TSPSourceThe object encapsulating the Time Stamp Protocol needed to create the level -T, of the signature -
Constructor Summary
ConstructorsConstructorDescriptionJAdESLevelBaselineT(CertificateVerifier certificateVerifier) The default constructor -
Method Summary
Modifier and TypeMethodDescriptionextendSignatures(DSSDocument document, JAdESSignatureParameters params) Extends the level of the signatures contained in a document.protected voidextendSignatures(List<AdvancedSignature> signatures, JAdESSignatureParameters params) Extends the signaturesprotected SignatureRequirementsCheckerInstantiates aSignatureRequirementsCheckervoidsetOperationKind(SigningOperation signingOperation) Sets the signing operation NOTE: the internal variable, used in the signature creation/extension processvoidsetTspSource(TSPSource tspSource) Sets the TSP source to be used when extending the digital signatureMethods inherited from class eu.europa.esig.dss.jades.signature.JAdESExtensionBuilder
assertEtsiUComponentsConsistent, assertJSONSerializationObjectMayBeExtended, assertJWSJsonSerializationObjectValid
-
Field Details
-
certificateVerifier
The CertificateVerifier to use -
tspSource
The object encapsulating the Time Stamp Protocol needed to create the level -T, of the signature -
documentValidator
The cached instance of a document validator
-
-
Constructor Details
-
JAdESLevelBaselineT
The default constructor- Parameters:
certificateVerifier-CertificateVerifierto use
-
-
Method Details
-
setTspSource
Sets the TSP source to be used when extending the digital signature- Parameters:
tspSource- the tspSource to set
-
setOperationKind
Description copied from interface:JAdESLevelBaselineExtensionSets the signing operation NOTE: the internal variable, used in the signature creation/extension process- Specified by:
setOperationKindin interfaceJAdESLevelBaselineExtension- Parameters:
signingOperation-SigningOperation
-
extendSignatures
Description copied from interface:SignatureExtensionExtends the level of the signatures contained in a document.- Specified by:
extendSignaturesin interfaceSignatureExtension<JAdESSignatureParameters>- Parameters:
document- The signed document to be signedparams- the parameters for the extension- Returns:
- the extended document
-
extendSignatures
protected void extendSignatures(List<AdvancedSignature> signatures, JAdESSignatureParameters params) Extends the signatures- Parameters:
signatures- a list ofAdvancedSignatures to be extendedparams-JAdESSignatureParametersthe extension parameters
-
getSignatureRequirementsChecker
protected SignatureRequirementsChecker getSignatureRequirementsChecker(JAdESSignatureParameters parameters) Instantiates aSignatureRequirementsChecker- Parameters:
parameters-JAdESSignatureParameters- Returns:
SignatureRequirementsChecker
-