I have following problem: I have a PDF with Signature fields. I now want to sign the PDF via Itext / Lowagie.

Ich was able to fill the Keystore.

How to proceed? I were to be grateful, if someone could write down the algorithm.

List<String> sigNames = acroFields.getBlankSignatureNames();
for(String sigName: sigNames)
{
signField(sigName);
}

What now do I have to write into the Method signField()?