Class RestDocumentSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.rest.RestDocumentSignatureServiceImpl
- All Implemented Interfaces:
RestDocumentSignatureService
,Serializable
public class RestDocumentSignatureServiceImpl
extends Object
implements RestDocumentSignatureService
REST implementation of the remote signature service
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null RemoteDocumentSignatureService -
Method Summary
Modifier and TypeMethodDescriptioncounterSignSignature
(CounterSignSignatureDTO counterSignSignature) Counter signs the defined signatureextendDocument
(ExtendDocumentDTO extendDocumentDto) Extends the level of the signatures in the toExtendDocumentgetDataToBeCounterSigned
(DataToBeCounterSignedDTO dataToBeCounterSigned) Retrieves the data to be signed for counter signature creationgetDataToSign
(DataToSignOneDocumentDTO dataToSignDto) Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.void
setService
(RemoteDocumentSignatureService service) Sets the remote signature servicesignDocument
(SignOneDocumentDTO signDocumentDto) Signs the toSignDocument with the provided signatureValue.timestampDocument
(TimestampOneDocumentDTO timestampDocument) Timestamps a toTimestampDocument with the provided parameters.
-
Constructor Details
-
RestDocumentSignatureServiceImpl
public RestDocumentSignatureServiceImpl()Default construction instantiating object with null RemoteDocumentSignatureService
-
-
Method Details
-
setService
Sets the remote signature service- Parameters:
service
-RemoteDocumentSignatureService
-
getDataToSign
Description copied from interface:RestDocumentSignatureService
Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.- Specified by:
getDataToSign
in interfaceRestDocumentSignatureService
- Parameters:
dataToSignDto
-DataToSignOneDocumentDTO
a DTO with the needed information (document and parameters) to compute the data to be signed- Returns:
ToBeSignedDTO
the data to be signed
-
signDocument
Description copied from interface:RestDocumentSignatureService
Signs the toSignDocument with the provided signatureValue.- Specified by:
signDocument
in interfaceRestDocumentSignatureService
- Parameters:
signDocumentDto
-SignOneDocumentDTO
a DTO with the needed information (document, parameter and signature value) to generate the signed document- Returns:
RemoteDocument
the signed document
-
extendDocument
Description copied from interface:RestDocumentSignatureService
Extends the level of the signatures in the toExtendDocument- Specified by:
extendDocument
in interfaceRestDocumentSignatureService
- Parameters:
extendDocumentDto
-ExtendDocumentDTO
a DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
RemoteDocument
the extended document
-
timestampDocument
Description copied from interface:RestDocumentSignatureService
Timestamps a toTimestampDocument with the provided parameters.- Specified by:
timestampDocument
in interfaceRestDocumentSignatureService
- Parameters:
timestampDocument
-TimestampOneDocumentDTO
a DTO with the needed information (document, timestamp parameters) to timestamp a document- Returns:
RemoteDocument
a timestamped document
-
getDataToBeCounterSigned
Description copied from interface:RestDocumentSignatureService
Retrieves the data to be signed for counter signature creation- Specified by:
getDataToBeCounterSigned
in interfaceRestDocumentSignatureService
- Parameters:
dataToBeCounterSigned
-DataToBeCounterSignedDTO
a DTO with the required information (signatureDocument, parameters) to get data to be counter signed- Returns:
DataToBeCounterSignedDTO
the data to be counter signed
-
counterSignSignature
Description copied from interface:RestDocumentSignatureService
Counter signs the defined signature- Specified by:
counterSignSignature
in interfaceRestDocumentSignatureService
- Parameters:
counterSignSignature
-CounterSignSignatureDTO
a DTO with the required information (dataToBeCounterSigned, parameters, signatureValue) to counter sign a signature- Returns:
RemoteDocument
representing a signatureDocument containing the created counter signature
-