I'm not 100% sure, but the way smart cards work you can not access
them by more than one application at the same time.

So what the library can do is between major operations alternate
who can use it, but true double use can never be archived.

It might be easiest to not even try. Think of: if you want to
sign some data, but the user has to enter the pin on the
smart card readers pinpad, then nothing can happen until the
user does so or the operation times out. multi threading or not,
lock_login or not, your application should better be designed
so it can handle this situation.

but again I'm no expert on this, even less on java.
it is only the basic design problem found using smart cards.

Regards, Andreas
_______________________________________________
opensc-devel mailing list
opensc-devel@lists.opensc-project.org
http://www.opensc-project.org/mailman/listinfo/opensc-devel

Reply via email to