Interface RestPAdESWithExternalCMSService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RestPAdESWithExternalCMSServiceImpl
@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 TypeMethodDescriptiongetMessageDigest(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.signDocument(PDFExternalSignDocumentDTO pdfSignDocument) Signs thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.
-
Method Details
-
getMessageDigest
@POST @Path("getMessageDigest") DigestDTO getMessageDigest(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
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
-