Package eu.europa.esig.dss.signature
Interface CounterSignatureService<CSP extends SerializableCounterSignatureParameters>
- Type Parameters:
CSP
- implementation of certain format signature parameters
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractASiCSignatureService
,ASiCWithCAdESService
,ASiCWithXAdESService
,CAdESService
,JAdESService
,XAdESService
public interface CounterSignatureService<CSP extends SerializableCounterSignatureParameters>
extends Serializable
This interface
CounterSignatureService
provides operations for a counter-signature creation-
Method Summary
Modifier and TypeMethodDescriptioncounterSignSignature
(DSSDocument signatureDocument, CSP parameters, SignatureValue signatureValue) Counter-signs thesignatureDocument
with the provided signatureValue.getDataToBeCounterSigned
(DSSDocument signatureDocument, CSP parameters) Retrieves the bytes of the data that need to be counter-signed fromsignatureDocument
.void
setTspSource
(TSPSource tspSource) This setter allows to define the TSP (timestamp provider) source.
-
Method Details
-
getDataToBeCounterSigned
Retrieves the bytes of the data that need to be counter-signed fromsignatureDocument
.signatureDocument
shall be a valid signature of the same type- Parameters:
signatureDocument
-DSSDocument
representing the original signature to be counter-signedparameters
- set of the driving signing parameters for a counter-signature- Returns:
ToBeSigned
to be counter-signed byte array (signature value retrieved from thesignatureDocument
)
-
counterSignSignature
DSSDocument counterSignSignature(DSSDocument signatureDocument, CSP parameters, SignatureValue signatureValue) Counter-signs thesignatureDocument
with the provided signatureValue.- Parameters:
signatureDocument
-DSSDocument
to be counter-signedparameters
- set of the driving signing parameters for a counter-signaturesignatureValue
-SignatureValue
the signature value to incorporate- Returns:
DSSDocument
the signature document enveloping a newly created counter-signature
-
setTspSource
This setter allows to define the TSP (timestamp provider) source.- Parameters:
tspSource
- The time stamp source which is used when timestamping the signature.
-