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
ConstructorsConstructorDescriptionDefault 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.voidsetService(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:RestDocumentSignatureServiceRetrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.- Specified by:
getDataToSignin interfaceRestDocumentSignatureService- Parameters:
dataToSignDto-DataToSignOneDocumentDTOa DTO with the needed information (document and parameters) to compute the data to be signed- Returns:
ToBeSignedDTOthe data to be signed
-
signDocument
Description copied from interface:RestDocumentSignatureServiceSigns the toSignDocument with the provided signatureValue.- Specified by:
signDocumentin interfaceRestDocumentSignatureService- Parameters:
signDocumentDto-SignOneDocumentDTOa DTO with the needed information (document, parameter and signature value) to generate the signed document- Returns:
RemoteDocumentthe signed document
-
extendDocument
Description copied from interface:RestDocumentSignatureServiceExtends the level of the signatures in the toExtendDocument- Specified by:
extendDocumentin interfaceRestDocumentSignatureService- Parameters:
extendDocumentDto-ExtendDocumentDTOa DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
RemoteDocumentthe extended document
-
timestampDocument
Description copied from interface:RestDocumentSignatureServiceTimestamps a toTimestampDocument with the provided parameters.- Specified by:
timestampDocumentin interfaceRestDocumentSignatureService- Parameters:
timestampDocument-TimestampOneDocumentDTOa DTO with the needed information (document, timestamp parameters) to timestamp a document- Returns:
RemoteDocumenta timestamped document
-
getDataToBeCounterSigned
Description copied from interface:RestDocumentSignatureServiceRetrieves the data to be signed for counter signature creation- Specified by:
getDataToBeCounterSignedin interfaceRestDocumentSignatureService- 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
Description copied from interface:RestDocumentSignatureServiceCounter signs the defined signature- Specified by:
counterSignSignaturein interfaceRestDocumentSignatureService- 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
-