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 thetoSignDocument
by incorporating the providedcmsSignature
within 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
-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
Signs thetoSignDocument
by incorporating the providedcmsSignature
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
-