Class RestTrustedListSignatureServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.rest.RestTrustedListSignatureServiceImpl
- All Implemented Interfaces:
RestTrustedListSignatureService,Serializable
public class RestTrustedListSignatureServiceImpl
extends Object
implements RestTrustedListSignatureService
REST implementation of the remote trusted list signing service
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault construction instantiating object with null RemoteTrustedListSignatureService -
Method Summary
Modifier and TypeMethodDescriptiongetDataToSign(DataToSignTrustedListDTO dataToSign) Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.voidSets the remote service for XML Trusted List signingsignDocument(SignTrustedListDTO signTrustedList) Signs the XML Trusted List with the provided signatureValue.
-
Constructor Details
-
RestTrustedListSignatureServiceImpl
public RestTrustedListSignatureServiceImpl()Default construction instantiating object with null RemoteTrustedListSignatureService
-
-
Method Details
-
setService
Sets the remote service for XML Trusted List signing- Parameters:
service-RemoteTrustedListSignatureService
-
getDataToSign
Description copied from interface:RestTrustedListSignatureServiceRetrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.- Specified by:
getDataToSignin interfaceRestTrustedListSignatureService- Parameters:
dataToSign-DataToSignTrustedListDTOa DTO with the needed information (trusted list and parameters) to compute the data to be signed- Returns:
ToBeSignedDTOthe data to be signed
-
signDocument
Description copied from interface:RestTrustedListSignatureServiceSigns the XML Trusted List with the provided signatureValue. NOTE: the same set of parameters shall be used for this method call, as it was forgetDataToSign(dataToSign)method- Specified by:
signDocumentin interfaceRestTrustedListSignatureService- Parameters:
signTrustedList-SignTrustedListDTOa DTO with the needed information (trusted list, parameter and signature value) to generate the signed XML Trusted List with an enveloped signature- Returns:
RemoteDocumentthe signed document
-