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
ConstructorDescriptionDefault 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.void
Sets 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:RestTrustedListSignatureService
Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.- Specified by:
getDataToSign
in interfaceRestTrustedListSignatureService
- Parameters:
dataToSign
-DataToSignTrustedListDTO
a DTO with the needed information (trusted list and parameters) to compute the data to be signed- Returns:
ToBeSignedDTO
the data to be signed
-
signDocument
Description copied from interface:RestTrustedListSignatureService
Signs 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:
signDocument
in interfaceRestTrustedListSignatureService
- Parameters:
signTrustedList
-SignTrustedListDTO
a DTO with the needed information (trusted list, parameter and signature value) to generate the signed XML Trusted List with an enveloped signature- Returns:
RemoteDocument
the signed document
-