Interface RestDocumentSignatureService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RestDocumentSignatureServiceImpl
@Path("/")
@Produces("application/json")
@Consumes("application/json")
public interface RestDocumentSignatureService
extends Serializable
This REST interface provides operations for the signature creation and for its extension.
-
Method Summary
Modifier and Type Method Description RemoteDocumentcounterSignSignature(CounterSignSignatureDTO counterSignSignature)Counter signs the defined signatureRemoteDocumentextendDocument(ExtendDocumentDTO extendDocument)Extends the level of the signatures in the toExtendDocumentToBeSignedDTOgetDataToBeCounterSigned(DataToBeCounterSignedDTO dataToBeCounterSigned)Retrieves the data to be signed for counter signature creationToBeSignedDTOgetDataToSign(DataToSignOneDocumentDTO dataToSign)Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.RemoteDocumentsignDocument(SignOneDocumentDTO signDocument)Signs the toSignDocument with the provided signatureValue.RemoteDocumenttimestampDocument(TimestampOneDocumentDTO timestampDocument)Timestamps a toTimestampDocument with the provided parameters.
-
Method Details
-
getDataToSign
Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.- Parameters:
dataToSign-DataToSignOneDocumentDTOa DTO with the needed information (document and parameters) to compute the data to be signed- Returns:
ToBeSignedDTOthe data to be signed
-
signDocument
Signs the toSignDocument with the provided signatureValue.- Parameters:
signDocument-SignOneDocumentDTOa DTO with the needed information (document, parameter and signature value) to generate the signed document- Returns:
RemoteDocumentthe signed document
-
extendDocument
Extends the level of the signatures in the toExtendDocument- Parameters:
extendDocument-ExtendDocumentDTOa DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
RemoteDocumentthe extended document
-
timestampDocument
@POST @Path("timestampDocument") RemoteDocument timestampDocument(TimestampOneDocumentDTO timestampDocument)Timestamps a toTimestampDocument with the provided parameters.- Parameters:
timestampDocument-TimestampOneDocumentDTOa DTO with the needed information (document, timestamp parameters) to timestamp a document- Returns:
RemoteDocumenta timestamped document
-
getDataToBeCounterSigned
@POST @Path("getDataToBeCounterSigned") ToBeSignedDTO getDataToBeCounterSigned(DataToBeCounterSignedDTO dataToBeCounterSigned)Retrieves the data to be signed for counter signature creation- Parameters:
dataToBeCounterSigned-DataToBeCounterSignedDTOa DTO with the required information (signatureDocument, parameters) to get data to be counter signed- Returns:
DataToBeCounterSignedDTOthe data to be counter signed
-
counterSignSignature
@POST @Path("counterSignSignature") RemoteDocument counterSignSignature(CounterSignSignatureDTO counterSignSignature)Counter signs the defined signature- Parameters:
counterSignSignature-CounterSignSignatureDTOa DTO with the required information (dataToBeCounterSigned, parameters, signatureValue) to counter sign a signature- Returns:
RemoteDocumentrepresenting a signatureDocument containing the created counter signature
-