Class RestExternalCMSServiceImpl
java.lang.Object
eu.europa.esig.dss.ws.signature.rest.RestExternalCMSServiceImpl
- All Implemented Interfaces:
RestExternalCMSService,Serializable
REST implementation of the remote CMS signature generation suitable for PAdES signature creation
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault construction instantiating object with null RestExternalCMSServiceImpl -
Method Summary
Modifier and TypeMethodDescriptiongetDataToSign(DataToSignExternalCmsDTO dataToSign) Returns a DTBS (Data To Be Signed) for Signature Value creation.voidsetService(RemoteExternalCMSService service) Sets the remote service for external CMS creation suitable for PAdES signingsignMessageDigest(SignMessageDigestExternalCmsDTO signMessageDigest) Creates a CMS signature signing the providedmessageDigestcompliant for PAdES signature enveloping.
-
Constructor Details
-
RestExternalCMSServiceImpl
public RestExternalCMSServiceImpl()Default construction instantiating object with null RestExternalCMSServiceImpl
-
-
Method Details
-
setService
Sets the remote service for external CMS creation suitable for PAdES signing- Parameters:
service-RemoteExternalCMSService
-
getDataToSign
Description copied from interface:RestExternalCMSServiceReturns a DTBS (Data To Be Signed) for Signature Value creation.- Specified by:
getDataToSignin interfaceRestExternalCMSService- Parameters:
dataToSign-DataToSignExternalCmsDTOcontaining message-digest computed on PDF's signature ByteRange and a set of signature driving parameters- Returns:
ToBeSignedDTOdata to be signed representation
-
signMessageDigest
Description copied from interface:RestExternalCMSServiceCreates a CMS signature signing the providedmessageDigestcompliant for PAdES signature enveloping.- Specified by:
signMessageDigestin interfaceRestExternalCMSService- Parameters:
signMessageDigest-SignMessageDigestExternalCmsDTOcontaining message-digest computed on PDF's signature ByteRange, set of signature driving parameters and a signatureValue computed on DTBS- Returns:
RemoteDocumentrepresenting a CMS signature suitable for PAdES-BASELINE creation
-