Class RestPAdESWithExternalCMSServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.rest.RestPAdESWithExternalCMSServiceImpl
- All Implemented Interfaces:
RestPAdESWithExternalCMSService
,Serializable
public class RestPAdESWithExternalCMSServiceImpl
extends Object
implements RestPAdESWithExternalCMSService
REST implementation of the remote PAdES signature with external CMS service
- See Also:
-
Constructor Summary
ConstructorDescriptionDefault construction instantiating object with null RestPAdESWithExternalCMSServiceImpl -
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.void
Sets the remote PAdES signature with external CMS servicesignDocument
(PDFExternalSignDocumentDTO pdfSignDocument) Signs thetoSignDocument
by incorporating the providedcmsSignature
within computed PDF signature revision.
-
Constructor Details
-
RestPAdESWithExternalCMSServiceImpl
public RestPAdESWithExternalCMSServiceImpl()Default construction instantiating object with null RestPAdESWithExternalCMSServiceImpl
-
-
Method Details
-
setService
Sets the remote PAdES signature with external CMS service- Parameters:
service
-RemotePAdESWithExternalCMSService
-
getMessageDigest
Description copied from interface:RestPAdESWithExternalCMSService
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.- Specified by:
getMessageDigest
in interfaceRestPAdESWithExternalCMSService
- 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
Description copied from interface:RestPAdESWithExternalCMSService
Signs thetoSignDocument
by incorporating the providedcmsSignature
within computed PDF signature revision.- Specified by:
signDocument
in interfaceRestPAdESWithExternalCMSService
- 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
-