The other day someone asked about accessing Vault from Java. We already had an article written on that topic long ago, which I hope is still relevant, but it does not have the sample project anymore, unfortunately :(
Still, the article itself could be useful enough: Download Vault5_0_client_from_java_v1.0