I upgraded from iText 5.2.1 to iText 5.5.5
I was using PdfStamper along with PdfSignatureApperance to apply digital signatures.
Here is my snippet of code.
PdfStamper stamper = PdfStamper.createSignature(reader, byteArrayOutputStream,'\0');
PdfSignatureAppearance appearance = stamper.getSignatureAppearance();
appearance.setCrypto(key, chain, null, PdfSignatureAppearance.WINCER_SIGNED);
From the above code, there are couple of things which are not present in the current version.
1) In version 5.5.5 of iText I can't find "setCrypto" method of PdfSignatureApperance class.
2) PdfSignatureApperance doesn't consist of WINCER_SIGNED.
If anyone can help me with applying digital signatures with new alternatives.
Thanks.