Access USB smart card reader with Java

Sureshot324

Diamond Member
Feb 4, 2003
3,370
0
71
I'm working on a Java app that will need to read a smart card from a USB smart card reader. The reader comes with a C++ API but not Java. I'd like to be able to interface with the smart card reader purely with Java, since then I could have a Java webstart app and user's wouldn't need to install anything but that. Windows installs the drivers for the reader automatically.

Basically I'm look for a way to interface directly with the driver from Java. Is this possible?
 

Shilohen

Member
Jul 29, 2009
194
0
0
Hi, I never tried, but when I interfaced with a CD burner in the past, I simply used the drive's name and a File object.
 

Leros

Lifer
Jul 11, 2004
21,867
7
81
Does the driver just use a serial connection? You could port or rewrite the driver.

Otherwise, you're going to need to interface C++ code with java code. You'll need to write the C++ interface.