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:
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null RemoteDocumentSignatureService -
Method Summary
Modifier and TypeMethodDescriptioncounterSignSignature
(CounterSignSignatureDTO counterSignSignature) Counter signs the defined signatureextendDocument
(ExtendDocumentDTO extendDocumentDto) This web service operation extends the signature of a given document to the level of the signature provided.getDataToBeCounterSigned
(DataToBeCounterSignedDTO dataToBeCounterSigned) Retrieves the data to be signed for counter signature creationgetDataToSign
(DataToSignOneDocumentDTO dataToSignDto) This method computes the digest to be signedvoid
setService
(RemoteDocumentSignatureService service) Sets the remote signature servicesignDocument
(SignOneDocumentDTO signDocumentDto) This web service operation signs a document according to a previously signed digest, a level of signature, some signature properties and keyInfo.timestampDocument
(TimestampOneDocumentDTO timestampDocument) This web service operation timestamps a document according to the provided timestamp parameters.
-
Constructor Details
-
SoapDocumentSignatureServiceImpl
public SoapDocumentSignatureServiceImpl()Default construction instantiating object with null RemoteDocumentSignatureService
-
-
Method Details
-
setService
Sets the remote signature service- Parameters:
service
-RemoteDocumentSignatureService
-
getDataToSign
Description copied from interface:SoapDocumentSignatureService
This method computes the digest to be signed- Specified by:
getDataToSign
in interfaceSoapDocumentSignatureService
- Parameters:
dataToSignDto
-DataToSignOneDocumentDTO
a DTO which contains the document to sign and parameters- Returns:
ToBeSignedDTO
the data to be signed
-
signDocument
Description copied from interface:SoapDocumentSignatureService
This web service operation signs a document according to a previously signed digest, a level of signature, some signature properties and keyInfo.- Specified by:
signDocument
in interfaceSoapDocumentSignatureService
- Parameters:
signDocumentDto
-SignOneDocumentDTO
a DTO which contains the document to be signed, the parameters and the signature value- Returns:
RemoteDocument
the signed document
-
extendDocument
Description copied from interface:SoapDocumentSignatureService
This 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:
extendDocument
in interfaceSoapDocumentSignatureService
- Parameters:
extendDocumentDto
-ExtendDocumentDTO
a DTO which contains the document to be extented and the parameters- Returns:
RemoteDocument
the document with an extended signature
-
timestampDocument
Description copied from interface:SoapDocumentSignatureService
This web service operation timestamps a document according to the provided timestamp parameters.- Specified by:
timestampDocument
in interfaceSoapDocumentSignatureService
- Parameters:
timestampDocument
-TimestampOneDocumentDTO
a DTO which contains the document to be timestamped and timestamp parameters- Returns:
RemoteDocument
a timestamped document
-
getDataToBeCounterSigned
Description copied from interface:SoapDocumentSignatureService
Retrieves the data to be signed for counter signature creation- Specified by:
getDataToBeCounterSigned
in interfaceSoapDocumentSignatureService
- Parameters:
dataToBeCounterSigned
-DataToBeCounterSignedDTO
a DTO with the required information (signatureDocument, parameters) to get data to be counter signed- Returns:
DataToBeCounterSignedDTO
the data to be counter signed
-
counterSignSignature
Description copied from interface:SoapDocumentSignatureService
Counter signs the defined signature- Specified by:
counterSignSignature
in interfaceSoapDocumentSignatureService
- Parameters:
counterSignSignature
-CounterSignSignatureDTO
a DTO with the required information (dataToBeCounterSigned, parameters, signatureValue) to counter sign a signature- Returns:
RemoteDocument
representing a signatureDocument containing the created counter signature
-