Module jpms_dss_document
Package eu.europa.esig.dss.signature
Interface CounterSignatureService<CSP extends eu.europa.esig.dss.model.SerializableCounterSignatureParameters>
- Type Parameters:
CSP- implementation of certain format signature parameters
- All Superinterfaces:
Serializable
public interface CounterSignatureService<CSP extends eu.europa.esig.dss.model.SerializableCounterSignatureParameters>
extends Serializable
This interface
CounterSignatureService provides operations for a counter-signature creation-
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.model.DSSDocumentcounterSignSignature(eu.europa.esig.dss.model.DSSDocument signatureDocument, CSP parameters, eu.europa.esig.dss.model.SignatureValue signatureValue) Counter-signs thesignatureDocumentwith the provided signatureValue.eu.europa.esig.dss.model.ToBeSignedgetDataToBeCounterSigned(eu.europa.esig.dss.model.DSSDocument signatureDocument, CSP parameters) Retrieves the bytes of the data that need to be counter-signed fromsignatureDocument.voidsetTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) This setter allows to define the TSP (timestamp provider) source.
-
Method Details
-
getDataToBeCounterSigned
eu.europa.esig.dss.model.ToBeSigned getDataToBeCounterSigned(eu.europa.esig.dss.model.DSSDocument signatureDocument, CSP parameters) Retrieves the bytes of the data that need to be counter-signed fromsignatureDocument.signatureDocumentshall be a valid signature of the same type- Parameters:
signatureDocument-DSSDocumentrepresenting the original signature to be counter-signedparameters- set of the driving signing parameters for a counter-signature- Returns:
ToBeSignedto be counter-signed byte array (signature value retrieved from thesignatureDocument)
-
counterSignSignature
eu.europa.esig.dss.model.DSSDocument counterSignSignature(eu.europa.esig.dss.model.DSSDocument signatureDocument, CSP parameters, eu.europa.esig.dss.model.SignatureValue signatureValue) Counter-signs thesignatureDocumentwith the provided signatureValue.- Parameters:
signatureDocument-DSSDocumentto be counter-signedparameters- set of the driving signing parameters for a counter-signaturesignatureValue-SignatureValuethe signature value to incorporate- Returns:
DSSDocumentthe signature document enveloping a newly created counter-signature
-
setTspSource
void setTspSource(eu.europa.esig.dss.spi.x509.tsp.TSPSource tspSource) This setter allows to define the TSP (timestamp provider) source.- Parameters:
tspSource- The time stamp source which is used when timestamping the signature.
-