I am Implementing Digital Signature in PDF using usb token. Now According to the digital Signature implementation through usbToken contains following steps.
- Hash of a PDF is generated and pass to the USB token.
- That hash will be encrypted by private key inside USB token.
- And that encrypted hash will be appended in certificate that we will get in our application.
I have implemented signature Utility using java, but i want to know how we can pass hash of document to USB Token for encryption of that hash.