Class RemotePAdESWithExternalCMSServiceImpl

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

public class RemotePAdESWithExternalCMSServiceImpl extends AbstractRemoteSignatureServiceImpl implements RemotePAdESWithExternalCMSService
WebService for PAdES signature creation using an external CMS signature provider
See Also:
  • Constructor Details

    • RemotePAdESWithExternalCMSServiceImpl

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

    • setService

      public void setService(eu.europa.esig.dss.pades.signature.PAdESWithExternalCMSService service)
      Sets the PAdESExternalCMSSignatureService
      Parameters:
      service - PAdESWithExternalCMSService
    • getMessageDigest

      public eu.europa.esig.dss.ws.dto.DigestDTO getMessageDigest(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters)
      Description copied from interface: RemotePAdESWithExternalCMSService
      Creates a signature revision for the given PDF toSignDocument according to the provided parameters and returns the message-digest computed on the extracted ByteRange content.

      NOTE : parameters do not need to contain signing-certificate and certificate chain, as they are a part of CMS signature.

      Specified by:
      getMessageDigest in interface RemotePAdESWithExternalCMSService
      Parameters:
      toSignDocument - RemoteDocument representing PDF document to be signed
      parameters - RemoteSignatureParameters set of the signing parameters for PAdES signature creation
      Returns:
      DigestDTO representing the message-digest to be used for CMS signature creation
    • signDocument

      public eu.europa.esig.dss.ws.dto.RemoteDocument signDocument(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters, eu.europa.esig.dss.ws.dto.RemoteDocument cmsSignature)
      Description copied from interface: RemotePAdESWithExternalCMSService
      Signs the toSignDocument by incorporating the provided cmsSignature within computed PDF signature revision.
      Specified by:
      signDocument in interface RemotePAdESWithExternalCMSService
      Parameters:
      toSignDocument - RemoteDocument representing PDF document to be signed
      parameters - RemoteSignatureParameters set of the signing parameters for PAdES signature creation
      cmsSignature - RemoteDocument representing a CMS signature (CMSSignedData) returned by an external provider
      Returns:
      RemoteDocument representing the signed PDF document