-----Original Message-----
From: "Eric Chow" <eric...@gmail.com>
Sent: ‎13-‎12-‎2013 13:15
To: "Post all your questions about iText here" 
<itext-questions@lists.sourceforge.net>
Subject: [iText-questions] LTV problem?

Hello,


I follow the example from iText examples to add LtvVerification to the code as 
following.
But after the PDF signed, I open with Acrobat reader, it just shows LTV not 
enabled!


Anything else I need to do? I am using iText-5.4.5.


Please help.


Best regards,
Eric




tsaClient = new TSAClientBouncyCastle(TSA_URL, TSA_ACCNT, TSA_PASSW, 6500, 
"sha256");



LtvVerification v = stamper.getLtvVerification();
        AcroFields af = stamper.getAcroFields();
        for (String sigName : af.getSignatureNames()) {
            //v.addVerification(sigName, ocspClient, new 
CrlClientOnline(chain), LtvVerification.CertificateOption.WHOLE_CHAIN, 
LtvVerification.Level.OCSP_CRL, LtvVerification.CertificateInclusion.NO);
        //v.addVerification(sigName, ocspClient, crlList.get(0), 
LtvVerification.CertificateOption.SIGNING_CERTIFICATE, 
LtvVerification.Level.OCSP_CRL, LtvVerification.CertificateInclusion.NO);
        //v.addVerification(sigName, ocspClient, crlList.get(0), 
LtvVerification.CertificateOption.SIGNING_CERTIFICATE, 
LtvVerification.Level.CRL, LtvVerification.CertificateInclusion.NO);
        
        v.addVerification(
        sigName, 
        ocspClient,
                    new CrlClientOnline(chain), 
                    LtvVerification.CertificateOption.WHOLE_CHAIN,
                    LtvVerification.Level.OCSP,
                    LtvVerification.CertificateInclusion.YES);
        
        
        }
        
        v.merge();        
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to