Interface RestExternalCMSService

All Superinterfaces:
Serializable

@Path("/") @Produces("application/json") @Consumes("application/json") public interface RestExternalCMSService extends Serializable
This REST interface provides a possibility of CMS signature creation suitable for PAdES signing
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.ws.dto.ToBeSignedDTO
    getDataToSign(eu.europa.esig.dss.ws.signature.dto.DataToSignExternalCmsDTO dataToSign)
    Returns a DTBS (Data To Be Signed) for Signature Value creation.
    eu.europa.esig.dss.ws.dto.RemoteDocument
    signMessageDigest(eu.europa.esig.dss.ws.signature.dto.SignMessageDigestExternalCmsDTO signMessageDigest)
    Creates a CMS signature signing the provided messageDigest compliant for PAdES signature enveloping.
  • Method Details

    • getDataToSign

      @POST @Path("getDataToSign") eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(eu.europa.esig.dss.ws.signature.dto.DataToSignExternalCmsDTO dataToSign)
      Returns a DTBS (Data To Be Signed) for Signature Value creation.
      Parameters:
      dataToSign - DataToSignExternalCmsDTO containing message-digest computed on PDF's signature ByteRange and a set of signature driving parameters
      Returns:
      ToBeSignedDTO data to be signed representation
    • signMessageDigest

      @POST @Path("signMessageDigest") eu.europa.esig.dss.ws.dto.RemoteDocument signMessageDigest(eu.europa.esig.dss.ws.signature.dto.SignMessageDigestExternalCmsDTO signMessageDigest)
      Creates a CMS signature signing the provided messageDigest compliant for PAdES signature enveloping.
      Parameters:
      signMessageDigest - SignMessageDigestExternalCmsDTO containing message-digest computed on PDF's signature ByteRange, set of signature driving parameters and a signatureValue computed on DTBS
      Returns:
      RemoteDocument representing a CMS signature suitable for PAdES-BASELINE creation