Interface RestTrustedListSignatureService

All Superinterfaces:
Serializable
All Known Implementing Classes:
RestTrustedListSignatureServiceImpl

@Path("/") @Produces("application/json") @Consumes("application/json") public interface RestTrustedListSignatureService extends Serializable
This REST interface provides operations for the XML Trusted List signing.
  • Method Details

    • getDataToSign

      @POST @Path("getDataToSign") ToBeSignedDTO getDataToSign(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") RemoteDocument signDocument(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