Class SoapSignService
java.lang.Object
com.logicaldoc.webservice.AbstractService
com.logicaldoc.sign.webservice.soap.endpoint.SoapSignService
- All Implemented Interfaces:
- SignService
public class SoapSignService
extends com.logicaldoc.webservice.AbstractService
implements SignService
Implementation of the Sign webservice
- Since:
- 7.1.2
- Author:
- Marco Meschieri - LogicalDOC
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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, jakarta.activation.DataHandler certificate) Imports an existing certificate file for the userMethods inherited from class com.logicaldoc.webservice.AbstractServiceconvertDateToString, convertStringToDate, getCurrentMessage, isValidateSession, setCurrentMessage, setValidateSession
- 
Constructor Details- 
SoapSignServicepublic SoapSignService()
 
- 
- 
Method Details- 
signpublic 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 interface- SignService
- Parameters:
- sid- The session identifier
- docIds- Identifiers of the documents you wants to sign
- reason- 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 authenticated
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
generateCertificatepublic 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 interface- SignService
- Parameters:
- sid- The session identifier
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
uploadCertificatepublic void uploadCertificate(String sid, String privateKey, jakarta.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 interface- SignService
- Parameters:
- sid- The session identifier
- privateKey- The private key
- certificate- The certificate file(just .crt format is supported)
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
- 
markDocumentSignedpublic 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 interface- SignService
- Parameters:
- sid- The session identifier
- docId- Identifier of the document
- reason- Reason for the signature
- certificate- Description of the certificate to save in the even
- Throws:
- com.logicaldoc.core.security.authentication.AuthenticationException- The user has not been authenticated
- com.logicaldoc.webservice.WebserviceException- Error in the webservice
- com.logicaldoc.core.PersistenceException- Error in the data layer
 
 
-