This content has been marked as final. Show 2 replies
In this guide http://download.oracle.com/javase/6/docs/technotes/guides/security/p11guide.html it's explained how to access a PKCS#11 device. It's very simple. Once you archieve the keyStore, you can tell it "getPriveteKey()", and so you get a PrivateKey, as you get with keyPair.getPrivate().
Important: You must got the deveice drivers installed on your PC... to access the token you need to specify the PKCS11 implementation of your device ( .dll for win or .so for Linux). Take a look at piont 2.2 in that guide.
Hope this helps. Regards, Gervasio