Ok. Thank you very much for your help ...

I've to test it, but looks nice :)

Bruno Lowagie escribió:
Eneko González Benito wrote:
Ok. Now i understand better what you were saying ...

What about setCrypto? I need to call it before signing .. can i do it without privateKey and chain? Or do i need at least one of them?
In the book example, I get the public certificate from a smart card like this: certs[0] = scd.getNonRepudiationCertificate();

In set crypto, I don't use a private key:
sap.setCrypto(
null, certs, null, PdfSignatureAppearance.SELF_SIGNED);

br,
Bruno


--
Eneko González Benito

Ezinbestekoa ez bada, ez imprimatu mezu hau; zaindu ingurumena.
No imprima este e-mail si no es totalmente necesario; respete el Medio Ambiente.
Don't print this e-mail unless it is absolutely necessary; respect the environment.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to