Reputation: 2217
What libraries can be used to digitally sign documents in Java?
Upvotes: 3
Views: 8052
Reputation: 269627
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.
Upvotes: 2
Reputation: 272207
The iText website has a section specifically addressing this scenario.
Upvotes: 1