Interface RestPAdESWithExternalCMSService

All Superinterfaces:
Serializable

@Path("/") @Produces("application/json") @Consumes("application/json") public interface RestPAdESWithExternalCMSService extends Serializable
This REST interface provides a possibility of PAdES signature creation using an external CMS signature provider
  • Method Summary

    Modifier and Type
    Method
    Description
    eu.europa.esig.dss.ws.dto.DigestDTO
    getMessageDigest(eu.europa.esig.dss.ws.signature.dto.PDFExternalMessageDigestDTO pdfMessageDigest)
    Creates a signature revision for the provided PDF document according to the defined parameters and returns the message-digest computed on the extracted ByteRange content.
    eu.europa.esig.dss.ws.dto.RemoteDocument
    signDocument(eu.europa.esig.dss.ws.signature.dto.PDFExternalSignDocumentDTO pdfSignDocument)
    Signs the toSignDocument by incorporating the provided cmsSignature within computed PDF signature revision.
  • Method Details

    • getMessageDigest

      @POST @Path("getMessageDigest") eu.europa.esig.dss.ws.dto.DigestDTO getMessageDigest(eu.europa.esig.dss.ws.signature.dto.PDFExternalMessageDigestDTO pdfMessageDigest)
      Creates a signature revision for the provided PDF document according to the defined parameters and returns the message-digest computed on the extracted ByteRange content.
      Parameters:
      pdfMessageDigest - PDFExternalMessageDigestDTO containing a PDF document to be singed and signature parameters
      Returns:
      DigestDTO representing message-digest computed on the prepared PDF signature byte range
    • signDocument

      @POST @Path("signDocument") eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(eu.europa.esig.dss.ws.signature.dto.PDFExternalSignDocumentDTO pdfSignDocument)
      Signs the toSignDocument by incorporating the provided cmsSignature within computed PDF signature revision.
      Parameters:
      pdfSignDocument - PDFExternalSignDocumentDTO containing a PDF document, set of driven signature creation parameters and a CMS signature document
      Returns:
      RemoteDocument representing a PDF signed document embedding the provided CMS signature