Method and system for selecting one or more integrated circuit card interface devices
A method for selecting at least one smart card reader from a list of smart card readers includes receiving a parameter indicative of a reader selection criteria, setting an environment variable that specifies a reader filtering library, executing an application that uses a smart card access library, and interposing the reader filtering library between the application and the smart card access library.
1. A method for selecting at least one smart card reader from a list of smart card readers, the method comprising:
receiving a parameter indicative of a reader selection criteria;
setting an environment variable that specifies a reader filtering library;
executing an application that uses a smart card access library, the smart card access library presenting smart card access infrastructure to the application; and
interposing the reader filtering library between the application and the smart card access library to filter the list according to the reader selection criteria to select at least one of the smart card readers.
2. The method of claim 1 wherein the smart card access library implements a smart card API.
3. The method of claim 2 wherein the smart card API comprises PC/SC-lite.
4. The method of claim 1 wherein the parameter comprises another environment variable.
5. The method of claim 1 wherein the reader selection criteria comprises reader name.
6. The method of claim 1 wherein the environment variable is named LD_PRELOAD.
7. A method for selecting at least one smart card reader from a list of smart card readers, the method comprising:
receiving a first environment variable indicative of a reader selection criteria;
setting a second environment variable that specifies a reader filtering library;
executing an application that uses a smart card access library that implements a smart card API; and
proxying the reader filtering library between the application and the smart card access library to filter the list according to the reader selection criteria to select at least one of the smart card readers.
8. The method of claim 7 wherein the smart card API comprises PC/SC-lite.
9. The method of claim 7 wherein the reader selection criteria comprises reader name.
10. The method of claim 7 wherein the second environment variable is named LD_PRELOAD.
11. A system for selecting at least one smart card reader from a list of smart card readers, the system comprising:
one or more computers configured to
receive a parameter indicative of a reader selection criteria,
set an environment variable that specifies a reader filtering library,
execute an application that uses a smart card access library that implements a smart card API, and
interpose the reader filtering library between the application and the smart card access library to filter the list according to the reader selection criteria to select at least one of the smart card readers.
12. The system of claim 11 wherein the smart card API comprises PC/SC-lite.
13. The system of claim 11 wherein the parameter comprises another environment variable.
14. The system of claim 11 wherein the reader selection criteria comprises reader name.
15. The system of claim 11 wherein the environment variable is named LD_PRELOAD.