Class VaultConfigTemplate
java.lang.Object
org.springframework.cloud.vault.config.VaultConfigTemplate
- All Implemented Interfaces:
VaultConfigOperations
Central class to retrieve configuration from Vault.
- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionVaultConfigTemplate(org.springframework.vault.core.VaultOperations vaultOperations, VaultProperties properties) Create a newVaultConfigTemplategivenVaultOperations. -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.vault.core.VaultOperationsread(SecretBackendMetadata secretBackendMetadata) Read secrets from a secret backend encapsulated within aSecretBackendMetadata.
-
Constructor Details
-
VaultConfigTemplate
public VaultConfigTemplate(org.springframework.vault.core.VaultOperations vaultOperations, VaultProperties properties) Create a newVaultConfigTemplategivenVaultOperations.- Parameters:
vaultOperations- must not be null.properties- must not be null.
-
-
Method Details
-
read
Description copied from interface:VaultConfigOperationsRead secrets from a secret backend encapsulated within aSecretBackendMetadata. Reading data using this method is suitable for secret backends that do not require a request body.- Specified by:
readin interfaceVaultConfigOperations- Parameters:
secretBackendMetadata- must not be null.- Returns:
- the configuration data. May be null.
-
getVaultOperations
public org.springframework.vault.core.VaultOperations getVaultOperations()- Specified by:
getVaultOperationsin interfaceVaultConfigOperations- Returns:
- the underlying
VaultOperations.
-