Register /
Login
|
Desktop view
|
KeyStore ks = KeyStore.getInstance("msks", "JCAPI");
ks.load(null, null);
JCAPIProperties.getInstance().setExclusiveMSCertStore(ks, "Root"); //This will tell JCAPI to only use the CAPI system store Root.
..Do your stuff here...
JCAPIProperties.getInstance().resetMSCertStoreNames(); //Use the usual CAPI system stores again.