@Client(value="${vault.client.uri}", configuration=VaultClientConfiguration.class) public interface VaultConfigHttpClientV1 extends VaultConfigHttpClient<VaultResponseV1>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_DESCRIPTION
Vault Http Client description.
|
Modifier and Type | Method and Description |
---|---|
default java.lang.String |
getDescription() |
org.reactivestreams.Publisher<VaultResponseV1> |
readConfigurationValues(java.lang.String token,
java.lang.String backend,
java.lang.String vaultKey)
Reads an application configuration from Vault.
|
static final java.lang.String CLIENT_DESCRIPTION
@Get(value="/v1/{backend}/{vaultKey}") @Produces(single=true) @Retryable(attempts="${pool.retry-count:3}", delay="${pool.retry-delay:1s}") org.reactivestreams.Publisher<VaultResponseV1> readConfigurationValues(@NonNull @Header(value="X-Vault-Token") java.lang.String token, @NonNull java.lang.String backend, @NonNull java.lang.String vaultKey)
readConfigurationValues
in interface VaultConfigHttpClient<VaultResponseV1>
token
- Vault authentication tokenbackend
- The name of the secret engine in VaultvaultKey
- The vault keyPublisher
that emits a list of VaultResponseV1
default java.lang.String getDescription()
getDescription
in interface VaultConfigHttpClient<VaultResponseV1>