Pheox - Forums
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 

JCAPI version 1.x RSS feed
Forum Index » General Issues
Author Message
andre999

Visitor

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

Visitor

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:

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:   
Mobile view
Powered by JForum 2.8.3 © 2023 JForum Team • Maintained by Andowson Chang and Ulf Dittmer