I want to access an iKey1000 pkcs 11 token via JDK 1.6and generate a key pair and then generate a certificate with that keypair and then store this entry on token but I dont have any idea aboutthis. I appreciate any answer.
First you should prepare the provider configuration either statistically or in your code to utilize the pkcs11 library read the pkcs11 guide on java web site if you are not clear on this.java.sun.com/.../p11guide.htmlAfter getting the store installed properly it will be just the general utilizing a KeyStore and a Provider to get the proper Objects of the security functionalities provided by your token.If the token has the provider for j2se 5 and above, using it will help u get rid of many immature problems in previous version implementations.If your token is not providing any provider on its own rather just a native pkcs11 library try utilizing it with the SUN PKCS11 library.