Digital signatures using itext 5.5.5

I upgraded iText 5.2.1 to iText 5.5.5

I used PdfStamper with PdfSignatureApperance to apply digital signatures.

Here is my code snippet.

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 several things that are not present in the current version.

1) In version 5.5.5 of iText I can not find the setCrypto method of the PdfSignatureApperance class.

2) PdfSignatureApperance does not consist of WINCER_SIGNED.

If anyone can help me with digital signatures with new alternatives.

Thank.

+4
source share

All Articles