By Date: <-- -->
By Thread: <-- -->

Getting the bytes of the digital signature ?



Hi all,

I am using iText to apply digital signatures to my PDFs. It works really 
great (many thanks for the developers! :-) )

I was wondering whether there is a way to retrieve the bytes 
corresponding to the digital signature itself.

The code snippet provided in the website and in the Javadoc allows me to 
sign and verify the signature, but I have no control about the signature 
itself.

I am thinking about signing the PDF first and then using something along 
the lines of

AcroFields af = reader.getAcroFields();
ArrayList names = af.getSignatureNames();
PdfPKCS7 pk = af.verifySignature(name);
byte[]  digitalsignature = getEncodedPKCS7();

to get the bytes.

Is this approach correct? Or is there any smarter way?

Any help would be greatly appreciated.

Thanks in advance,

-- 
Luiz Kobayashi



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions