I am developing a java web application where we need to communicate with client machine's USB port to check whether card reader is attached or not and to read data from card reader for user’s authentication. If card reader is attached at client’s USB port and card is swiped then read the card data and authenticate the user.
Card Reader Type : HID Omnikey 5325CL
My Question is:
How to check whether card reader is attached and card swiped on client’s machine or not? How to do this client-server communication?
I heard about three options,
1. Applet-servlet communication
2. Downloading .dll file at client machine which will read card data.
3. Using java script.
I don't know which the feasible solution is and how to implement it.