Java Vault Connector

Connect Hashicorp's Vault with your Java application.



Current version: 0.8.1 (2018-08-16)

Tested up to: Vault 1.2.2


Features


Maven Artifact

Notice: Artifact ID changed with version 0.8.0. Please migrate your projects to the new artifact.

<dependency>
    <groupId>de.stklcode.jvault</groupId>
    <artifactId>jvault-connector</artifactId>
    <version>0.8.1</version>
</dependency>

Usage

Click here for more usage examples.


// Instantiate using the builder.
VaultConnector vault = VaultConnectorBuilder.http()
    .withHost("vault.example.com")
    .withPort(8200)
    .build();

// Authenticate with token
vault.authToken("01234567-89ab-cdef-0123-456789abcdef");

// Retrieve a secret.
Map<String, Object> secret = vault.read("secret/to/read").getData();

Download

Latest version: jvault-connector-0.8.1.jar (sha256, asc), source (sha256, asc)

Older releases: archive (changelog)


PGP Fingerprint:

D48D 78BD 52BF BB26 6B48 923E BFBC 48FA D733 3A31


License

This project is licensed under Apache License 2.0