I am trying to communicate with a CAC using Java. From the Developer Kit, I was able to find information about extracting the Unique ID (CHUID) and a few other pieces of information, like the applets available on the card. However, I am unable to extract the username (LastName.FirstName.MiddleName.ID) from the card, and I am also unable to find documentation on the CAC stuff.
I am not using the card to access a secure website. I am using it in a desktop application to authenticate users, and so would not be accessing the certificates stored on the card. I am able to access the different applets stored on the card, but have no idea how to get the username out. This username is needed to verify the users in our system. How can I get the username from a CAC?