Interface RemotePAdESWithExternalCMSService
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RemotePAdESWithExternalCMSServiceImpl
This service is used for developing a REST/SOAP API for PAdES signing using an external CMS signature provider.
-
Method Summary
Modifier and TypeMethodDescriptiongetMessageDigest(RemoteDocument toSignDocument, RemoteSignatureParameters parameters) Creates a signature revision for the given PDFtoSignDocumentaccording to the providedparametersand returns the message-digest computed on the extracted ByteRange content.signDocument(RemoteDocument toSignDocument, RemoteSignatureParameters parameters, RemoteDocument cmsSignature) Signs thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.
-
Method Details
-
getMessageDigest
Creates a signature revision for the given PDFtoSignDocumentaccording to the providedparametersand returns the message-digest computed on the extracted ByteRange content.NOTE :
parametersdo not need to contain signing-certificate and certificate chain, as they are a part of CMS signature.- Parameters:
toSignDocument-RemoteDocumentrepresenting PDF document to be signedparameters-RemoteSignatureParametersset of the signing parameters for PAdES signature creation- Returns:
DigestDTOrepresenting the message-digest to be used for CMS signature creation
-
signDocument
RemoteDocument signDocument(RemoteDocument toSignDocument, RemoteSignatureParameters parameters, RemoteDocument cmsSignature) Signs thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.- Parameters:
toSignDocument-RemoteDocumentrepresenting PDF document to be signedparameters-RemoteSignatureParametersset of the signing parameters for PAdES signature creationcmsSignature-RemoteDocumentrepresenting a CMS signature (CMSSignedData) returned by an external provider- Returns:
RemoteDocumentrepresenting the signed PDF document
-