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.ConfigDataResourceVault-specific implementation for aConfigDataLocation. Consists of aSecretBackendMetadata.- Since:
- 3.0
- Author:
- Mark Paluch
- See Also:
SecretBackendMetadata
-
-
Field Summary
Fields Modifier and Type Field Description static StringVAULT_PREFIXPrefix used to indicate aVaultConfigLocation.
-
Constructor Summary
Constructors Constructor Description VaultConfigLocation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)SecretBackendMetadatagetSecretBackendMetadata()inthashCode()booleanisOptional()StringtoString()
-
-
-
Field Detail
-
VAULT_PREFIX
public static final String VAULT_PREFIX
Prefix used to indicate aVaultConfigLocation.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VaultConfigLocation
public VaultConfigLocation(String contextPath, boolean optional)
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
public VaultConfigLocation(SecretBackendMetadata secretBackendMetadata, boolean optional)
Create a newVaultConfigLocationinstance.- Parameters:
secretBackendMetadata- the backend descriptor.optional- if the resource is optional
-
-
Method Detail
-
getSecretBackendMetadata
public SecretBackendMetadata getSecretBackendMetadata()
-
isOptional
public boolean isOptional()
-
-