I'm bascially looking for someplace to start learning how to interface with a government CAC card using java.
Ultimately, my goal is to find out how to use CAC card authentication (by PIN number) to authorize access to a website hosted using a Tomcat/J2EE server.
But I'll need somewhere to start. So I figure I'd start by writing a small java program to simply read the CAC card information from the CAC card which is inserted into a card reader on my keyboard (DELL keyboard with CAC reader above the numeric keypad).
By searching google, I found the cacard java project (https://cacard.dev.java.net/) which was replaced by the OpenSSO project. But I can't seem to find sample code of how to use it to connect to a card, read from a card, etc.
Does anyone know where I can find some sample code so that I can start learning how to interact with a CAC card using java?
Thanks
EDIT:
After researching more, I was thinking, would I be able to just set clientAuth="true"
in the connector element in the server.xml
file?
http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html
clientAuth: Set this value to true if you want Tomcat to require all SSL clients to present a client Certificate in order to use this socket.