Module jpms_dss_ws_signature_remote
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 Summary
ConstructorsConstructorDescriptionDefault constructor instantiating object with null RemotePAdESWithExternalCMSServiceImpl -
Method Summary
Modifier and TypeMethodDescriptioneu.europa.esig.dss.ws.dto.DigestDTOgetMessageDigest(eu.europa.esig.dss.ws.dto.RemoteDocument toSignDocument, eu.europa.esig.dss.ws.signature.dto.parameters.RemoteSignatureParameters parameters) Creates a signature revision for the given PDFtoSignDocumentaccording to the providedparametersand returns the message-digest computed on the extracted ByteRange content.voidsetService(eu.europa.esig.dss.pades.signature.PAdESWithExternalCMSService service) Sets thePAdESExternalCMSSignatureServiceeu.europa.esig.dss.ws.dto.RemoteDocumentsignDocument(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) Signs thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.Methods inherited from class eu.europa.esig.dss.ws.signature.common.AbstractRemoteSignatureServiceImpl
createCounterSignatureParameters, createParameters, fillParameters, getASiCSignatureParameters, getJAdESSignatureParameters, getPAdESSignatureParameters, getXAdESSignatureParameters, toBLevelParameters, toCommitmentTypeList, toSignatureValue, toTimestampParameters, toTimestampParameters
-
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 thePAdESExternalCMSSignatureService- 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:RemotePAdESWithExternalCMSServiceCreates 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.- Specified by:
getMessageDigestin interfaceRemotePAdESWithExternalCMSService- 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
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:RemotePAdESWithExternalCMSServiceSigns thetoSignDocumentby incorporating the providedcmsSignaturewithin computed PDF signature revision.- Specified by:
signDocumentin interfaceRemotePAdESWithExternalCMSService- 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
-