Question

DigitalOcean Java API

Posted February 4, 2013 6.4k views
Hi. I've searched for a java api wrapper without any luck so I've started to build one. For the moment is very basic. Give it a try. https://github.com/2beers/digitalocean-java-api If someone else has a better implementation please share so we can join forces. Thanks

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers
That's pretty sweet also check out our developers working on integrating with the API in this thread:

https://www.digitalocean.com/community/questions/community-built-tools
I have published the digitalocean-api-client [https://github.com/jeevatkm/digitalocean-api-java] library into Maven Central Repo. It's simple and easy to use.

<dependency>
<groupId>com.myjeeva</groupId>
<artifactId>digitalocean-api-client</artifactId>
<version>1.0</version>
</dependency>

Refer Readme at https://github.com/jeevatkm/digitalocean-api-java

Refer Test case for usage: https://github.com/jeevatkm/digitalocean-api-java/blob/master/src/test/java/com/myjeeva/digitalocean/DigitalOceanTest.java

Javadocs: http://docs.myjeeva.com/javadoc/digitalocean-api-client/1.0/
We're trying to access Digital Ocean API using Java, but apparently Java has a known issue with some types of SSL certificates.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7044060

Digital Ocean API uses a godaddy wildcard certificate, and sometimes the Java code throws the following exception:
java.lang.RuntimeException: Could not generate DH keypair

It's random, sometimes the key exchange works and sometimes doesn't.

Has this problem ever happened to anyone?
Submit an Answer