Search   Recent Topics     Member Listing   Register /  Login 
JCAPI version 1.x
Forum Index -> General Issues
Author Message
andre999
Returner

Joined: Jun 14, 2012
Messages: 5
Offline

Does the JCAPI API version 1.x provide method to add CA cert into the MS CAPI's ROOT ?

If there is, would you point out the classes involved?

Thanks,
Andrew
tommy
Pheox Support

Joined: May 30, 2005
Messages: 148
Offline

Hi Andrew,

You can choose what CAPI system stores to use when you work with certificates in JCAPI. The class you should work with is named JCAPIProperties.

Here is an example of how you can do:
Code:
 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.
 


Just let us know if it doesn't work out for you.

Regards,
Tommy
 
  Forum Index -> General Issues
Go to: