Interface VaultConfigHttpClient<T extends AbstractVaultResponse<?>>
- Type Parameters:
T
- The body type
- All Known Subinterfaces:
VaultConfigHttpClientV1
,VaultConfigHttpClientV2
public interface VaultConfigHttpClient<T extends AbstractVaultResponse<?>>
A contract for an HTTP client to read configuration from Vault.
- Since:
- 1.2.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<T>
readConfigurationValues
(@NonNull String token, @NonNull String backend, @NonNull String vaultKey) Read configuration from Vault.
-
Method Details
-
getDescription
String getDescription()- Returns:
- The client description
-
readConfigurationValues
org.reactivestreams.Publisher<T> readConfigurationValues(@NonNull @Header("X-Vault-Token") @NonNull String token, @NonNull @NonNull String backend, @NonNull @NonNull String vaultKey) Read configuration from Vault.- Parameters:
token
- The vault tokenbackend
- The secret engine namevaultKey
- The vault key- Returns:
- A publisher of the response body
-