Class RestMultipleDocumentSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.rest.RestMultipleDocumentSignatureServiceImpl
- All Implemented Interfaces:
RestMultipleDocumentSignatureService
,Serializable
public class RestMultipleDocumentSignatureServiceImpl
extends Object
implements RestMultipleDocumentSignatureService
REST implementation of the remote multiple signature service
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null RemoteMultipleDocumentsSignatureService -
Method Summary
Modifier and TypeMethodDescriptionextendDocument
(ExtendDocumentDTO extendDocumentDto) Extends the level of the signatures in the toExtendDocumentgetDataToSign
(DataToSignMultipleDocumentsDTO dataToSignDto) Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.void
Sets the remote signature multiple servicesignDocument
(SignMultipleDocumentDTO signDocumentDto) Signs the toSignDocuments with the provided signatureValue.timestampDocuments
(TimestampMultipleDocumentDTO timestampDocument) Timestamps the toTimestampDocuments with the provided timestamp parameters.
-
Constructor Details
-
RestMultipleDocumentSignatureServiceImpl
public RestMultipleDocumentSignatureServiceImpl()Default construction instantiating object with null RemoteMultipleDocumentsSignatureService
-
-
Method Details
-
setService
Sets the remote signature multiple service- Parameters:
service
-RemoteMultipleDocumentsSignatureService
-
getDataToSign
Description copied from interface:RestMultipleDocumentSignatureService
Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.- Specified by:
getDataToSign
in interfaceRestMultipleDocumentSignatureService
- Parameters:
dataToSignDto
- a DTO with the needed information (one or more document(s) and parameters) to compute the data to be signed- Returns:
- the data to be signed
-
signDocument
Description copied from interface:RestMultipleDocumentSignatureService
Signs the toSignDocuments with the provided signatureValue.- Specified by:
signDocument
in interfaceRestMultipleDocumentSignatureService
- Parameters:
signDocumentDto
- a DTO with the needed information (one or more document(s), parameters and signature value) to generate the signed document- Returns:
- the signed document
-
extendDocument
Description copied from interface:RestMultipleDocumentSignatureService
Extends the level of the signatures in the toExtendDocument- Specified by:
extendDocument
in interfaceRestMultipleDocumentSignatureService
- Parameters:
extendDocumentDto
- a DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
- the extended document
-
timestampDocuments
Description copied from interface:RestMultipleDocumentSignatureService
Timestamps the toTimestampDocuments with the provided timestamp parameters.- Specified by:
timestampDocuments
in interfaceRestMultipleDocumentSignatureService
- Parameters:
timestampDocument
- a DTO with the needed information (one or more document(s) and timestamp parameters) to timestamp the document(s)- Returns:
- a timestamped document
-