Package com.logicaldoc.sign.automation
Class SignTool
java.lang.Object
com.logicaldoc.sign.automation.SignTool
Digitally signs a document with the user's digital certificate, useful for
working from inside the Automation
- Since:
- 8.1.1
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
SignTool
public SignTool()
-
-
Method Details
-
sign
public void sign(com.logicaldoc.core.document.Document doc, com.logicaldoc.core.security.User user, String reason) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException, com.logicaldoc.gui.common.client.ServerException Digitally signs a document with the user's digital certificate- Parameters:
doc
- the document to signuser
- the signer userreason
- the reason for signing- Throws:
IOException
- I/O errorcom.logicaldoc.core.PersistenceException
- Error in the data layerCertificateException
- Error accessing the certificateNoSuchAlgorithmException
- Error accessing the certificateKeyStoreException
- Error accessing the certificateUnrecoverableKeyException
- Error accessing the certificateFeatureNotEnabledException
- Feature not enabled in the licensecom.logicaldoc.gui.common.client.ServerException
- A generic error
-
sign
public void sign(com.logicaldoc.core.document.Document doc, String username, String reason) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, com.logicaldoc.core.PersistenceException, FeatureNotEnabledException, com.logicaldoc.gui.common.client.ServerException Digitally signs a document with the user's digital certificate- Parameters:
doc
- the document to signusername
- username of the signerreason
- the reason for signing- Throws:
IOException
- I/O errorcom.logicaldoc.core.PersistenceException
- Error in the data layerCertificateException
- Error accessing the certificateNoSuchAlgorithmException
- Error accessing the certificateKeyStoreException
- Error accessing the certificateUnrecoverableKeyException
- Error accessing the certificateFeatureNotEnabledException
- Feature not enabled in the licensecom.logicaldoc.gui.common.client.ServerException
- A generic error
-