I am looking at PDFBox-SignExample.zip which I think was referenced at
https://issues.apache.org/jira/browse/PDFBOX-912 by Thomas Chojecki on
04/Apr/11 to the download link:
http://media-nation.de/~rayman2200/PDFBox-SignExample.zip
I am trying to use pdfbox 1.7.0 with BounceCastle 1.47 and it shows the
following methods in BC as deprecated:
gen.addSigner(privKey, (X509Certificate)certList.get(0),
CMSSignedGenerator.DIGEST_SHA256);
gen.addCertificatesAndCRLs(certStore);
CMSSignedData signedData = gen.generate(input, false, provider);
Has anybody done this using the newer BC methods? I have the keys and X.509
certificate (but without using a BC/Java keystore) and it works as is, but
not sure how to change it to support non-deprecated APIs. Yes, this is
probably a BC issue, but I figured the person who wrote the original code
may have a good handle on this as it was being used directly in a PDFBox
signing example.
Thanks for any pointers...