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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    sign(com.logicaldoc.core.document.Document doc, com.logicaldoc.core.security.user.User user, String reason)
    Digitally signs a document with the user's digital certificate
    void
    sign(com.logicaldoc.core.document.Document doc, String username, String reason)
    Digitally signs a document with the user's digital certificate

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SignTool

      public SignTool()
  • Method Details

    • sign

      public 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, com.logicaldoc.core.runtime.FeatureDisabledException, 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
      com.logicaldoc.core.runtime.FeatureDisabledException - Feature not enabled in the license
      com.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, com.logicaldoc.core.runtime.FeatureDisabledException, 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
      com.logicaldoc.core.runtime.FeatureDisabledException - Feature not enabled in the license
      com.logicaldoc.gui.common.client.ServerException - A generic error