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 Type
    Method
    Description
    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.
    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.
  • 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 - 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

      @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 for getDataToSign(dataToSign) method
      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