Package com.logicaldoc.sign.automation
Class SignTool
- java.lang.Object
-
- com.logicaldoc.sign.automation.SignTool
-
public class SignTool extends Object
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
Constructors Constructor Description SignTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsign(com.logicaldoc.core.document.Document doc, com.logicaldoc.core.security.User user, String reason)Digitally signs a document with the user's digital certificatevoidsign(com.logicaldoc.core.document.Document doc, String username, String reason)Digitally signs a document with the user's digital certificate
-
-
-
Method Detail
-
sign
public void sign(com.logicaldoc.core.document.Document doc, com.logicaldoc.core.security.User user, String reason) throws ExceptionDigitally signs a document with the user's digital certificate- Parameters:
doc- the document to signuser- the signer userreason- the reason for signing- Throws:
Exception- error signing the document
-
sign
public void sign(com.logicaldoc.core.document.Document doc, String username, String reason) throws ExceptionDigitally signs a document with the user's digital certificate- Parameters:
doc- the document to signusername- username of the signerreason- the reason for signing- Throws:
Exception- error signing the document
-
-