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 SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
SignToolpublic SignTool()
 
- 
- 
Method Details- 
signpublic void sign(com.logicaldoc.core.document.Document doc, com.logicaldoc.core.security.user.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 sign
- user- the signer user
- reason- the reason for signing
- Throws:
- IOException- I/O error
- com.logicaldoc.core.PersistenceException- Error in the data layer
- CertificateException- Error accessing the certificate
- NoSuchAlgorithmException- Error accessing the certificate
- KeyStoreException- Error accessing the certificate
- UnrecoverableKeyException- Error accessing the certificate
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.gui.common.client.ServerException- A generic error
 
- 
signpublic 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 sign
- username- username of the signer
- reason- the reason for signing
- Throws:
- IOException- I/O error
- com.logicaldoc.core.PersistenceException- Error in the data layer
- CertificateException- Error accessing the certificate
- NoSuchAlgorithmException- Error accessing the certificate
- KeyStoreException- Error accessing the certificate
- UnrecoverableKeyException- Error accessing the certificate
- FeatureNotEnabledException- Feature not enabled in the license
- com.logicaldoc.gui.common.client.ServerException- A generic error
 
 
-