Package io.vertx.config.vault
Class VaultConfigStore
- java.lang.Object
-
- io.vertx.config.vault.VaultConfigStore
-
- All Implemented Interfaces:
ConfigStore
public class VaultConfigStore extends Object implements ConfigStore
An implementation ofConfigStore
for Vault (https://www.vaultproject.io/).- Author:
- Clement Escoffier
-
-
Constructor Summary
Constructors Constructor Description VaultConfigStore(Vertx vertx, JsonObject config)
Creates an instance ofVaultConfigStore
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Future<Void>
close()
Closes the configuration store.Future<Buffer>
get()
Retrieves the configuration store in this store.SlimVaultClient
getVaultClient()
-
-
-
Constructor Detail
-
VaultConfigStore
public VaultConfigStore(Vertx vertx, JsonObject config)
Creates an instance ofVaultConfigStore
.- Parameters:
vertx
- the vert.x instanceconfig
- the configuration, used to create theSlimVaultClient
.
-
-
Method Detail
-
close
public Future<Void> close()
Description copied from interface:ConfigStore
Closes the configuration store.- Specified by:
close
in interfaceConfigStore
- Returns:
- a
Future
of the asynchronous result.
-
get
public Future<Buffer> get()
Description copied from interface:ConfigStore
Retrieves the configuration store in this store.- Specified by:
get
in interfaceConfigStore
- Returns:
- a
Future
of the asynchronous result.
-
getVaultClient
public SlimVaultClient getVaultClient()
- Returns:
- the underlying client - for testing purpose only.
-
-