Package eu.europa.esig.dss.signature
Interface CounterSignatureService<CSP extends SerializableCounterSignatureParameters>
- 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 thesignatureDocumentwith the provided signatureValue.getDataToBeCounterSigned(DSSDocument signatureDocument, CSP parameters) Retrieves the bytes of the data that need to be counter signed fromsignatureDocument.
-
Method Details
-
getDataToBeCounterSigned
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
DSSDocument counterSignSignature(DSSDocument signatureDocument, CSP parameters, 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
-