views:

765

answers:

4

What libraries can be used to digitally sign documents in Java?

+3  A: 

iText is probably the highest quality PDF manipulation library I've seen commercial or open source, and it absolutely can be used to sign PDF documents.

altCognito
+1  A: 

The iText website has a section specifically addressing this scenario.

Brian Agnew
+1  A: 

Because PDF has explicit support for digital signatures, the process for signing them is different than what you might have to use for "another document", as pointed out already.

If you have a document format that doesn't have digital signature support "built-in", you can wrap it with in another format that supports digital signatures, such as S/MIME. BouncyCastle's S/MIME support is alright.

erickson
A: 

If you need a stable and reliable library that can work on all documents, the latest PDF format and support multiple digital signatures, you should look into more sophisticated commerical libraries such as jPDFProcess or jPDFSecure.

Qoppa PDF