Hello,

Do you mean that I cannot not use SunPKCS11 with iText-5.3.0 now?

If I need to do the digital signature with a smart card, how can I do?

Would you please to show me a simple example?

Best regards,
Eric




On Thu, Jul 19, 2012 at 3:53 PM, Andreas Kuehne <[email protected]> wrote:

> Hi Michael,
>
> yes, it could be useful to denote a special provider for hashing. Maybe
> the best solution would be to have a signing provider parameter and an
> optional parameter for hash usage, which defaults to BC.
>
> I wouldn't recommend to make decision upon provider names within the
> code (like the check for SunPKCS11). This fails far to easily. E.g. I
> prefer to use the iaik PKCS11 provider ;-)
>
> Greetings,
>
> Andreas
> > Andreas,
> >
> > Andreas Kuehne-3 wrote
> >> would we be better off if iText doesn't use the given provider for
> >> hashing? The specified provider is usually intended for the signing
> stuff.
> >> And BC is always a good choice for hashing algorithms.
> > That can be a solution, too. Maybe, though, someone prefers a specific
> > digest algorithm implementation but cannot guarantee the provider being
> > positioned at an early enough position in the provider list. On the other
> > hand iText cannot consider all tiny special cases and such persons should
> > create their signature containers externally.
> >
> > Most important in my eyes, though, is to make the provider handling in
> iText
> > consistent --- if excluding SunPKCS11 when retrieving a digest algorithm
> > once, it should be done in all similar contexts.
> >
> > Regards,   Michael
> >
> > --
> > View this message in context:
> http://itext-general.2136553.n4.nabble.com/iText-5-3-0-digital-signature-problem-tp4655635p4655642.html
> > Sent from the iText - General mailing list archive at Nabble.com.
> >
> >
> ------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond. Discussions
> > will include endpoint security, mobile security and the latest in malware
> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > 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
> >
>
>
> --
> Andreas Kühne
> phone: +49 177 293 24 97
> mailto: [email protected]
>
> Trustable Ltd. Niederlassung Deutschland Ströverstr. 18 - 59427 Unna
> Amtsgericht Hamm HRB 5868
>
> Directors Andreas Kühne, Heiko Veit
>
> Company UK Company No: 5218868 Registered in England and Wales
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Reply via email to