Java Applet for mutual authentication with smart card
===

I need to develop a java applet, for a mutual authentication between Tomcat 6 (server) and a SmartCard "**IDGo 300**" (client).

In order to do this I thought the following scheme:
1. Tomcat (server) send to SmartCard (client) the request of his digital certificate (signed by CA).
2. client enter PIN and select an available certificate on the smart card then the Applet sends his certificate (signed by  CA) to tomcat. tomcat verify the digital certificate and if correct send back his  certificate.
3. The applet verify the certificate of the server, and if the certificate is correct send a confirm to server.
4. The server give full access to the client to use the web application. 

I have some question:
1. This scheme is feasible?
2. I would like to manage everything through my applet and when the client disconnect the smart card he lose access to the server