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
Modifier and TypeFieldDescriptionprotected final CertificateVerifier
The CertificateVerifier to useprotected AbstractJWSDocumentAnalyzer
The cached instance of a document validatorprotected TSPSource
The object encapsulating the Time Stamp Protocol needed to create the level -T, of the signature -
Constructor Summary
ConstructorDescriptionJAdESLevelBaselineT
(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 void
extendSignatures
(List<AdvancedSignature> signatures, JAdESSignatureParameters params) Extends the signaturesprotected SignatureRequirementsChecker
Instantiates aSignatureRequirementsChecker
void
setOperationKind
(SigningOperation signingOperation) Sets the signing operation NOTE: the internal variable, used in the signature creation/extension processvoid
setTspSource
(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
-CertificateVerifier
to 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:JAdESLevelBaselineExtension
Sets the signing operation NOTE: the internal variable, used in the signature creation/extension process- Specified by:
setOperationKind
in interfaceJAdESLevelBaselineExtension
- Parameters:
signingOperation
-SigningOperation
-
extendSignatures
Description copied from interface:SignatureExtension
Extends the level of the signatures contained in a document.- Specified by:
extendSignatures
in 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 ofAdvancedSignature
s to be extendedparams
-JAdESSignatureParameters
the extension parameters
-
getSignatureRequirementsChecker
protected SignatureRequirementsChecker getSignatureRequirementsChecker(JAdESSignatureParameters parameters) Instantiates aSignatureRequirementsChecker
- Parameters:
parameters
-JAdESSignatureParameters
- Returns:
SignatureRequirementsChecker
-