What libraries can be used to digitally sign documents in Java?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With