Class SoapDocumentSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.soap.SoapDocumentSignatureServiceImpl
- All Implemented Interfaces:
SoapDocumentSignatureService,Serializable
public class SoapDocumentSignatureServiceImpl extends Object implements SoapDocumentSignatureService
SOAP implementation of the remote signature service
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description SoapDocumentSignatureServiceImpl() -
Method Summary
Modifier and Type Method Description RemoteDocumentcounterSignSignature(CounterSignSignatureDTO counterSignSignature)Counter signs the defined signatureRemoteDocumentextendDocument(ExtendDocumentDTO extendDocumentDto)This web service operation extends the signature of a given document to the level of the signature provided.ToBeSignedDTOgetDataToBeCounterSigned(DataToBeCounterSignedDTO dataToBeCounterSigned)Retrieves the data to be signed for counter signature creationToBeSignedDTOgetDataToSign(DataToSignOneDocumentDTO dataToSignDto)This method computes the digest to be signedvoidsetService(RemoteDocumentSignatureService service)Sets the remote signature serviceRemoteDocumentsignDocument(SignOneDocumentDTO signDocumentDto)This web service operation signs a document according to a previously signed digest, a level of signature, some signature properties and keyInfo.RemoteDocumenttimestampDocument(TimestampOneDocumentDTO timestampDocument)This web service operation timestamps a document according to the provided timestamp parameters.
-
Constructor Details
-
SoapDocumentSignatureServiceImpl
public SoapDocumentSignatureServiceImpl()
-
-
Method Details
-
setService
Sets the remote signature service- Parameters:
service-RemoteDocumentSignatureService
-
getDataToSign
Description copied from interface:SoapDocumentSignatureServiceThis method computes the digest to be signed- Specified by:
getDataToSignin interfaceSoapDocumentSignatureService- Parameters:
dataToSignDto-DataToSignOneDocumentDTOa DTO which contains the document to sign and parameters- Returns:
ToBeSignedDTOthe data to be signed
-
signDocument
Description copied from interface:SoapDocumentSignatureServiceThis web service operation signs a document according to a previously signed digest, a level of signature, some signature properties and keyInfo.- Specified by:
signDocumentin interfaceSoapDocumentSignatureService- Parameters:
signDocumentDto-SignOneDocumentDTOa DTO which contains the document to be signed, the parameters and the signature value- Returns:
RemoteDocumentthe signed document
-
extendDocument
Description copied from interface:SoapDocumentSignatureServiceThis web service operation extends the signature of a given document to the level of the signature provided. The document is only changed, if the given signature level is 'higher' than the signature level of the document.- Specified by:
extendDocumentin interfaceSoapDocumentSignatureService- Parameters:
extendDocumentDto-ExtendDocumentDTOa DTO which contains the document to be extented and the parameters- Returns:
RemoteDocumentthe document with an extended signature
-
timestampDocument
Description copied from interface:SoapDocumentSignatureServiceThis web service operation timestamps a document according to the provided timestamp parameters.- Specified by:
timestampDocumentin interfaceSoapDocumentSignatureService- Parameters:
timestampDocument-TimestampOneDocumentDTOa DTO which contains the document to be timestamped and timestamp parameters- Returns:
RemoteDocumenta timestamped document
-
getDataToBeCounterSigned
Description copied from interface:SoapDocumentSignatureServiceRetrieves the data to be signed for counter signature creation- Specified by:
getDataToBeCounterSignedin interfaceSoapDocumentSignatureService- 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:SoapDocumentSignatureServiceCounter signs the defined signature- Specified by:
counterSignSignaturein interfaceSoapDocumentSignatureService- 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
-