Once installed and configured, you can integrate the Signing Automation Client with a signing application. For example, you can run the signature samples provided with the iText library for Java. 

To run the iText signature samples

  1. Configure a service subscription as explained in Managing tokens with Entrust Certificate Services cloud.
  2. On your computer, install:
  3. Open a web browser in https://github.com/itext/i7js-signatures
  4. Click on  Code > Download ZIP
  5. Download the ZIP file on your computer.
  6. Unzip the downloaded file into a working folder on your PC. For example: 

    C:\Projects\i7js-signatures-develop
  7. Launch the Eclipse IDE.
  8. Select File > Import > General > Projects from Folder or Archive.
  9. In Import source, indicate the path of the unzipped iText samples.
  10. Click Finish.
  11. Add a subfolder to the project. For example: 

    C:\Projects\i7js-signatures-develop\config
  12. In this new subfolder, create the files described in the following sections.

  13. In the Eclipse navigation pane, browse to i7js‑signatures‑develop > src/test/java > com.itextpdf.samples.signatures.chapter04

  14. In the navigation pane, double-click C4_01_SignWithPKCS11HSM.java

  15. Update the file contents as explained in C4_01_SignWithPKCS11HSM.java.

  16. In the Eclipse navigation pane, right-click C4_01_SignWithPKCS11HSM.java and select Run As > Java Application.

  17. Open the generated file with Adobe Acrobat Reader.

    C:\Projects\i7js-signatures-develop\target\signatures\chapter04\hello_hsm.pdf
  18. Check that the generated PDF file includes an embedded signature and a timestamp.