Java Vault Connector ========= Java Vault Connector is a connector library for [Vault](https://www.vaultproject.io) by [Hashicorp](https://www.hashicorp.com) written in Java. The connector allows simple usage of Vault's secret store in own applications. **Current available features:** * HTTP(S) backend connector * Authorization methods: * Token * Username/Password * AppID (register and authenticate) * AppRole (register and authenticate) * Secrets * Read secrets * Write secrets * List secrets * Delete secrets * Renew/revoke leases * Connector Factory with builder pattern * Tested against Vault 0.6.2 **Usage Example** ```java // Instanciate using builder pattern style factory VaultConnector vault = VaultConnectorFactory.httpFactory() .wiithHost("127.0.0.1") .withPort(8200) .withTLS() .build(); //authenticate with token vault.authToken("01234567-89ab-cdef-0123-456789abcdef"); // retrieve secret String secret = vault.readSecret("some/secret/key").getValue(); ``` **Maven Artifact** ``` de.stklcode.jvault connector 0.4.0 ``` **Links** [Project Page](http://jvault.stklcode.de) [JavaDoc API](http://jvault.stklcode.de/apidocs/) **Planned features:** * Creation and modification of policies * Implement more authentication methods **License** The project is licensed under [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).