Class RemoteExternalCMSServiceImpl

java.lang.Object
eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
eu.europa.esig.dss.ws.signature.common.RemoteExternalCMSServiceImpl
All Implemented Interfaces:
RemoteExternalCMSService, Serializable

public class RemoteExternalCMSServiceImpl extends AbstractRemoteSignatureServiceImpl implements RemoteExternalCMSService
WebService for CMS signature creation compatible for PAdES signature creation (enveloping within /Contents of a PDF signature revision).
See Also:
  • Constructor Details

    • RemoteExternalCMSServiceImpl

      public RemoteExternalCMSServiceImpl()
      Default constructor instantiating object with null RemoteExternalCMSServiceImpl
  • Method Details

    • setService

      public void setService(eu.europa.esig.dss.pades.signature.ExternalCMSService service)
      Sets the ExternalCMSService
      Parameters:
      service - ExternalCMSService
    • getDataToSign

      public eu.europa.esig.dss.ws.dto.ToBeSignedDTO getDataToSign(eu.europa.esig.dss.ws.dto.DigestDTO messageDigestDTO, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters)
      Description copied from interface: RemoteExternalCMSService
      Returns a DTBS (Data To Be Signed) for Signature Value creation.
      Specified by:
      getDataToSign in interface RemoteExternalCMSService
      Parameters:
      messageDigestDTO - DigestDTO containing message-digest computed on PDF's signature ByteRange
      parameters - RemoteSignatureParameters set of the signing parameters for CMS signature creation
      Returns:
      DigestDTO representing the DTBS (Data To Be Signed)
    • signMessageDigest

      public eu.europa.esig.dss.ws.dto.RemoteDocument signMessageDigest(eu.europa.esig.dss.ws.dto.DigestDTO messageDigestDTO, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.SignatureValueDTO signatureValueDTO)
      Description copied from interface: RemoteExternalCMSService
      Creates a CMS signature signing the provided messageDigest compliant for PAdES signature enveloping.
      Specified by:
      signMessageDigest in interface RemoteExternalCMSService
      Parameters:
      messageDigestDTO - DigestDTO containing message-digest computed on PDF's signature ByteRange
      parameters - RemoteSignatureParameters set of the signing parameters for CMS signature creation
      signatureValueDTO - SignatureValueDTO the signature value to incorporate
      Returns:
      the CMS signature covering the message-digest for inclusion to a PAdES signature