Class 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 Detail

      • SignTool

        public SignTool()
    • Method Detail

      • sign

        public void sign​(com.logicaldoc.core.document.Document doc,
                         com.logicaldoc.core.security.User user,
                         String reason)
                  throws Exception
        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:
        Exception - error signing the document
      • sign

        public void sign​(com.logicaldoc.core.document.Document doc,
                         String username,
                         String reason)
                  throws Exception
        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:
        Exception - error signing the document