Class RestDocumentSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
eu.europa.esig.dss.ws.signature.rest.RestDocumentSignatureServiceImpl
- All Implemented Interfaces:
RestDocumentSignatureService
,Serializable
public class RestDocumentSignatureServiceImpl extends AbstractRemoteSignatureServiceImpl implements RestDocumentSignatureService
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RestDocumentSignatureServiceImpl()
-
Method Summary
Modifier and Type Method Description RemoteDocument
extendDocument(ExtendDocumentDTO extendDocumentDto)
Extends the level of the signatures in the toExtendDocumentToBeSignedDTO
getDataToSign(DataToSignOneDocumentDTO dataToSignDto)
Retrieves the bytes of the data that need to be signed based on the toSignDocument and parameters.void
setService(RemoteDocumentSignatureService service)
RemoteDocument
signDocument(SignOneDocumentDTO signDocumentDto)
Signs the toSignDocument with the provided signatureValue.RemoteDocument
timestampDocument(TimestampOneDocumentDTO timestampDocument)
Timestamps a toTimestampDocument with the provided parameters.Methods inherited from class eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
createParameters, fillParameters, getASiCSignatureParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
Constructor Details
-
RestDocumentSignatureServiceImpl
public RestDocumentSignatureServiceImpl()
-
-
Method Details
-
setService
-
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
- a DTO with the needed information (document and parameters) to compute the data to be signed- Returns:
- 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
- a DTO with the needed information (document, parameter and signature value) to generate the signed document- Returns:
- 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
- a DTO with the needed information (the signed document and extension parameters) to generate the extended document- Returns:
- the extended document
-
timestampDocument
Description copied from interface:RestDocumentSignatureService
Timestamps a toTimestampDocument with the provided parameters.- Specified by:
timestampDocument
in interfaceRestDocumentSignatureService
- Parameters:
timestampDocument
- a DTO with the needed information (document, timestamp parameters) to timestamp a document- Returns:
- a timestamped document
-