The PKCS # 11 Reference Guide is a good place to start.
Gemalto smart cards always come with PKCS # 11 DLLs, unfortunately, it has different names depending on the card. Just browse the files that came with your installation until you find a DLL with "p" and "11" in it :)
After you place it, you can follow the steps in the reference guide, that is, create a configuration file that points to the PKCS # 11 library, etc. If all goes well, you should have access to a smart card as simple as
KeyStore ks = KeyStore.getInstance("PKCS11"); ks.load(null, "pin".toCharArray());
Please note that for production code, you must use the proper CallbackHandler
as indicated in the manual, of course - this is just to quickly verify that everything works.
source share