Interface RemotePAdESWithExternalCMSService

All Superinterfaces:
Serializable
All Known Implementing Classes:
RemotePAdESWithExternalCMSServiceImpl

public interface RemotePAdESWithExternalCMSService extends Serializable
This service is used for developing a REST/SOAP API for PAdES signing using an external CMS signature provider.
  • Method Details

    • getMessageDigest

      DigestDTO getMessageDigest(RemoteDocument toSignDocument, RemoteSignatureParameters parameters)
      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.

      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

      RemoteDocument signDocument(RemoteDocument toSignDocument, RemoteSignatureParameters parameters, RemoteDocument cmsSignature)
      Signs the toSignDocument by incorporating the provided cmsSignature within computed PDF signature revision.
      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