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 TypeMethodDescriptioneu.europa.esig.dss.ws.dto.DigestDTOgetMessageDigest(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.RemoteDocumentsignDocument(eu.europa.esig.dss.ws.signature.dto.PDFExternalSignDocumentDTO pdfSignDocument) Signs thetoSignDocumentby incorporating the providedcmsSignaturewithin 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-PDFExternalMessageDigestDTOcontaining a PDF document to be singed and signature parameters- Returns:
DigestDTOrepresenting 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 thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.- Parameters:
pdfSignDocument-PDFExternalSignDocumentDTOcontaining a PDF document, set of driven signature creation parameters and a CMS signature document- Returns:
RemoteDocumentrepresenting a PDF signed document embedding the provided CMS signature
-