How to interact with a smart card in Java?

Q8Y picture Q8Y · Sep 29, 2010 · Viewed 13.4k times · Source

Is there is a library (API) in Java with which I can interact with a smart card? Similar to the WinSCard library.

I need to be able to connect with the smart card and read data from it. I need to implement it in Java so that I can use it under any OS (Linux, Mac, Windows). Since, the WinSCard library only works under Windows because it uses a DLL (WinSCard.dll).

Is there anything as good as WinSCard in Java?

Answer

jmones picture jmones · Feb 18, 2011

One of the solutions is to use Java™ Smart Card I/O API. See the "Description" section for a simple usage example.