Re: Error when users use two applications with e-ID

114 views
Skip to first unread message

fcorneli

unread,
Nov 22, 2012, 11:29:25 AM11/22/12
to eID Middleware
Hi,


The SunPKCS11 security provider does not re-initialize the PKCS#11
libraries.
You need to use some reflection magic to reload the PKCS#11 drivers
when using the SunPKCS11 security provider.
Example code available at:
http://code.google.com/p/eid-applet/source/browse/tags/1.0.2.GA/eid-applet-core/src/main/java/be/fedict/eid/applet/sc/Pkcs11Eid.java
See methods: isEidPresent and cFinalize


Kind Regards,
Frank.

On 19 nov, 17:25, Nguyen Minh Tam <nminh...@gmail.com> wrote:
> For our client, we develop a Swing application that use the e-ID to
> authenticate. If the user use the application alone, no problem arise but
> the user need to use another web application which also use the e-ID.
> When he switches from the web application to the Swing application, he got
> the following message : Token has been removed. The message occurs with the
> middleware 3.5. With the new middleware (4.0), we got the following message
> : No installed provider supports this key:
> sun.security.pkcs11.P11Key$P11PrivateKey
>
> We try to remove and register again the PKCS11 provider without success. We
> are currently using java 6 with the dll provided by the middleware to
> access the key store - private key.
>
> We are looking for a solution where the user don't need to close and reopen
> our application to use it even if he needs to type his pin again. Or the
> best solution will be a single sign on for both applications.
>
> Does anyone know how to do that?
Reply all
Reply to author
Forward
0 new messages