Class VaultConfigLocation
java.lang.Object
org.springframework.boot.context.config.ConfigDataResource
org.springframework.cloud.vault.config.VaultConfigLocation
public class VaultConfigLocation
extends org.springframework.boot.context.config.ConfigDataResource
Vault-specific implementation for a
ConfigDataLocation. Consists of a
SecretBackendMetadata.- Since:
- 3.0
- Author:
- Mark Paluch
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPrefix used to indicate aVaultConfigLocation. -
Constructor Summary
ConstructorsConstructorDescriptionVaultConfigLocation(String contextPath, boolean optional) Create a newVaultConfigLocationinstance.VaultConfigLocation(String contextPath, org.springframework.vault.core.util.PropertyTransformer propertyTransformer, boolean optional) Create a newVaultConfigLocationinstance.VaultConfigLocation(SecretBackendMetadata secretBackendMetadata, boolean optional) Create a newVaultConfigLocationinstance. -
Method Summary
-
Field Details
-
VAULT_PREFIX
-
-
Constructor Details
-
VaultConfigLocation
Create a newVaultConfigLocationinstance.- Parameters:
contextPath- the context pathoptional- if the resource is optional
-
VaultConfigLocation
public VaultConfigLocation(String contextPath, org.springframework.vault.core.util.PropertyTransformer propertyTransformer, boolean optional) Create a newVaultConfigLocationinstance.- Parameters:
contextPath- the context pathpropertyTransformer- the property transformeroptional- if the resource is optional- Since:
- 3.0.4
-
VaultConfigLocation
Create a newVaultConfigLocationinstance.- Parameters:
secretBackendMetadata- the backend descriptor.optional- if the resource is optional
-
-
Method Details
-
getSecretBackendMetadata
-
isOptional
public boolean isOptional() -
equals
-
hashCode
-
toString
-