Java Vault Connector
Connect Hashicorp's Vault with your Java application.
Current version: 1.4.0 (2024-12-07)
Tested against: Vault 1.2 to 1.18
Features
- HTTP(S) backend connector
- Token, UserPass and AppRole auth backends
- Read, write and list secrets
- Builder pattern style connector factory
- Optional initialization from environment variables
Maven Artifact
<dependency>
<groupId>de.stklcode.jvault</groupId>
<artifactId>jvault-connector</artifactId>
<version>1.4.0</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-1.4.0.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