Class VaultConfigTemplate
- java.lang.Object
-
- org.springframework.cloud.vault.config.VaultConfigTemplate
-
- All Implemented Interfaces:
VaultConfigOperations
public class VaultConfigTemplate extends Object implements VaultConfigOperations
Central class to retrieve configuration from Vault.- Author:
- Mark Paluch
- See Also:
VaultOperations
-
-
Constructor Summary
Constructors Constructor Description VaultConfigTemplate(org.springframework.vault.core.VaultOperations vaultOperations, VaultProperties properties)Create a newVaultConfigTemplategivenVaultOperations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.vault.core.VaultOperationsgetVaultOperations()Secretsread(SecretBackendMetadata secretBackendMetadata)Read secrets from a secret backend encapsulated within aSecretBackendMetadata.
-
-
-
Constructor Detail
-
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 Detail
-
read
public Secrets read(SecretBackendMetadata secretBackendMetadata)
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.
-
-