Interact with an external client side Java application from CUBA

Hi All,

I need to integrate a USB smart card reader, reading some identity informations, from a user’s smart card, and sendig back these data to my CUBA application in order to automatically fill part of a form.

I manage to write some Java code able to interact with the smart card reader but I have no clear idea what’s the best way to approach such integration: the old school solved these problems using Java/Flash Applet, but today?

Do you have any suggestions?