If someone wants to write a java application that interacts with a physical device, specifically a reader (e.g. as when you go in a hotel, gym, bank etc and you pass the card through a reader and the application finds you in the database) how is this done?
Is there a java api to interact with the reader and get the cards data?
When a company creates a reader (physical device) does it provide relevant apis?
Are the physical details abstracted from the application programmer?
I need to interact with a reader in java but I do not know how to start.
Any input is highly welcome!
Thanks
You can start playing with the javax.smartcardio package.
It's an official Oracle product to allow smart card interaction. This doesn't solve the general problem of device communication (in Unix, simply open /dev/whatever0
with right permissions as it was a file), but may help you with your smart card scenario.