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
REST implementation of the remote signature service
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RestDocumentSignatureServiceImpl() -
Method Summary
Modifier and Type Method Description RemoteDocumentcounterSignSignature(CounterSignSignatureDTO counterSignSignature)Counter signs the defined signatureRemoteDocumentextendDocument(ExtendDocumentDTO extendDocumentDto)Extends the level of the signatures in the toExtendDocumentToBeSignedDTOgetDataToBeCounterSigned(DataToBeCounterSignedDTO dataToBeCounterSigned)Retrieves the data to be signed for counter signature creationToBeSignedDTOgetDataToSign(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 serviceRemoteDocumentsignDocument(SignOneDocumentDTO signDocumentDto)Signs the toSignDocument with the provided signatureValue.RemoteDocumenttimestampDocument(TimestampOneDocumentDTO timestampDocument)Timestamps a toTimestampDocument with the provided parameters.Methods inherited from class eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
createCounterSignatureParameters, createParameters, fillParameters, getASiCSignatureParameters, getJAdESSignatureParameters, getPAdESSignatureParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
Constructor Details
-
RestDocumentSignatureServiceImpl
public RestDocumentSignatureServiceImpl()
-
-
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
-