I understand, but how can I clear the memory? sun.security.Provider have one
method clear(), and sun.security.pkcs11.SunPKCS11 has no method for
releasing the resources. I can not close the session explicitly! I am doing
the sign in a method so when the method is done all variables are destroyed.
basically my logic is like:
Provider provider = getProvider();
Security.addProvider(provider);
PrivateKey pk = getPrivateKey();
for(5000 times){
signPDF(pk, provider);
}
i will get exception. I have tried with few providers and I always get
exception.
Could you please try to sign one PDF file for thousands times and see if you
get exception!!!?
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/SunPKC11-Exception-when-signing-PDF-tp4340293p4347995.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
iText-questions mailing list
[email protected]
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