Showing Posts For Alex.1503:

Java access to the api

in API Development

Posted by: Alex.1503

Alex.1503

http://www.clearfield.com/key_store_browser/key_store_browser.html

Look at the source code of that, from what I understand, it has methods that can add certificates to existing keystores.

What about grabbing the user’s keystore (making a copy of it), adding the new cert to it, and setting it as the javax.net.ssl.keyStore for your app?

Wouldn’t that avoid:
a) Using a trust manager that trusts everything?
b) Editing the user’s actual keyStore, as it’s only creating a new one for the app’s execution?

Java access to the api

in API Development

Posted by: Alex.1503

Alex.1503

Yeah, I googled around but didn’t find any way to add the certificate into the keystore from within the program.

The trust manager is stupid, but I couldn’t find any real solution. The trust manager was just a way to actually be able to access the data.

Java access to the api

in API Development

Posted by: Alex.1503

Alex.1503

I’m working on integrating the API with java.
There’s a couple of things I’ve done. It can parse information that comes from the json files. I threw a couple of gui’s together so that you can select a server and it lists all of the events on that server and their status. The parser should work with most the json files (needs to be slightly adapted for the recipes).

Anyway, here’s a link for the code.

http://code.google.com/p/gw2-java-api/