Interface RestDocumentSignatureService
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RestDocumentSignatureServiceImpl
@Path("/") @Produces("application/json") @Consumes("application/json") public interface RestDocumentSignatureService extends SerializableThis REST interface provides operations for the signature creation and for its extension.
-
-
Method Summary
Modifier and Type Method Description RemoteDocumentextendDocument(ExtendDocumentDTO extendDocument)Extends the level of the signatures in the toExtendDocumentToBeSignedDTOgetDataToSign(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.
-
-
-
Method Detail
-
getDataToSign
@POST @Path("getDataToSign") ToBeSignedDTO getDataToSign(DataToSignOneDocumentDTO dataToSign)Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.- Parameters:
dataToSign- a DTO with the needed information (document and parameters) to compute the data to be signed- Returns:
- the data to be signed
-
signDocument
@POST @Path("signDocument") RemoteDocument signDocument(SignOneDocumentDTO signDocument)Signs the toSignDocument with the provided signatureValue.- Parameters:
signDocument- a DTO with the needed information (document, parameter and signature value) to generate the signed document- Returns:
- the signed document
-
extendDocument
@POST @Path("extendDocument") RemoteDocument extendDocument(ExtendDocumentDTO extendDocument)Extends the level of the signatures in the toExtendDocument- Parameters:
extendDocument- a DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
- the extended document
-
-