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