Interface RestTrustedListSignatureService
- All Superinterfaces:
Serializable
@Path("/")
@Produces("application/json")
@Consumes("application/json")
public interface RestTrustedListSignatureService
extends Serializable
This REST interface provides operations for the XML Trusted List signing.
-
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.ws.dto.ToBeSignedDTOgetDataToSign(eu.europa.esig.dss.ws.signature.dto.DataToSignTrustedListDTO dataToSign) Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.eu.europa.esig.dss.ws.dto.RemoteDocumentsignDocument(eu.europa.esig.dss.ws.signature.dto.SignTrustedListDTO signTrustedList) Signs the XML Trusted List with the provided signatureValue.
-
Method Details
-
getDataToSign
@POST @Path("getDataToSign") eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(eu.europa.esig.dss.ws.signature.dto.DataToSignTrustedListDTO dataToSign) Retrieves the bytes of the data that need to be signed based on the given XML Trusted List and parameters.- 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
@POST @Path("signDocument") eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(eu.europa.esig.dss.ws.signature.dto.SignTrustedListDTO signTrustedList) 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- 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
-