Class SoapSignClient
java.lang.Object
com.logicaldoc.webservice.soap.client.SoapClient<SignService>
com.logicaldoc.sign.webservice.soap.client.SoapSignClient
- All Implemented Interfaces:
SignService
public class SoapSignClient
extends com.logicaldoc.webservice.soap.client.SoapClient<SignService>
implements SignService
-
Constructor Summary
ConstructorsConstructorDescriptionSoapSignClient(String endpoint) SoapSignClient(String endpoint, int gzipThreshold, boolean log, int timeout) -
Method Summary
Modifier and TypeMethodDescriptionvoidGenerates a new certificate for the uservoidmarkDocumentSigned(String sid, long docId, String reason, String certificate) Marks a document as signed(it does not apply any signature, just marks the document as signed)Signs a set of documentsvoiduploadCertificate(String sid, String privateKey, javax.activation.DataHandler certificate) Imports an existing certificate file for the user
-
Constructor Details
-
SoapSignClient
-
SoapSignClient
-
-
Method Details
-
generateCertificate
public void generateCertificate(String sid) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignServiceGenerates a new certificate for the user- Specified by:
generateCertificatein interfaceSignService- Parameters:
sid- The session identifier- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layer
-
sign
public List<Long> sign(String sid, List<Long> docIds, String reason) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignServiceSigns a set of documents- Specified by:
signin interfaceSignService- Parameters:
sid- The session identifierdocIds- Identifiers of the documents you wants to signreason- Reason for the signature- Returns:
- The list of the documents that were signed
- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layer
-
markDocumentSigned
public void markDocumentSigned(String sid, long docId, String reason, String certificate) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignServiceMarks a document as signed(it does not apply any signature, just marks the document as signed)- Specified by:
markDocumentSignedin interfaceSignService- Parameters:
sid- The session identifierdocId- Identifier of the documentreason- Reason for the signaturecertificate- Description of the certificate to save in the even- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layer
-
uploadCertificate
public void uploadCertificate(String sid, String privateKey, javax.activation.DataHandler certificate) throws com.logicaldoc.core.security.authentication.AuthenticationException, com.logicaldoc.webservice.WebserviceException, com.logicaldoc.core.PersistenceException Description copied from interface:SignServiceImports an existing certificate file for the user- Specified by:
uploadCertificatein interfaceSignService- Parameters:
sid- The session identifierprivateKey- The private keycertificate- The certificate file(just .crt format is supported)- Throws:
com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticatedcom.logicaldoc.webservice.WebserviceException- Error in the webservicecom.logicaldoc.core.PersistenceException- Error in the data layer
-