Class VaultKeyValueBackendProperties
java.lang.Object
org.springframework.cloud.vault.config.VaultKeyValueBackendProperties
- All Implemented Interfaces:
org.springframework.beans.factory.Aware, VaultKeyValueBackendPropertiesSupport, org.springframework.context.EnvironmentAware
@ConfigurationProperties("spring.cloud.vault.kv")
@Validated
public class VaultKeyValueBackendProperties
extends Object
implements org.springframework.context.EnvironmentAware, VaultKeyValueBackendPropertiesSupport
Configuration properties for Vault using the key-value backend.
- Since:
- 2.0
- Author:
- Mark Paluch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.booleanvoidsetApplicationName(String applicationName) voidsetBackend(String backend) voidsetBackendVersion(int backendVersion) voidsetDefaultContext(String defaultContext) voidsetEnabled(boolean enabled) voidsetEnvironment(org.springframework.core.env.Environment environment) voidsetProfiles(List<String> profiles) voidsetProfileSeparator(String profileSeparator) toString()
-
Field Details
-
PREFIX
-
-
Constructor Details
-
VaultKeyValueBackendProperties
public VaultKeyValueBackendProperties()
-
-
Method Details
-
setEnvironment
public void setEnvironment(org.springframework.core.env.Environment environment) - Specified by:
setEnvironmentin interfaceorg.springframework.context.EnvironmentAware
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- true if this backend configuration is enabled; false otherwise.
-
getBackend
- Specified by:
getBackendin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- mound path of the secret backend.
-
getDefaultContext
- Specified by:
getDefaultContextin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- default context path. Can be empty.
-
getProfileSeparator
- Specified by:
getProfileSeparatorin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- profile separator character.
-
getApplicationName
- Specified by:
getApplicationNamein interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- the application name to use.
-
getProfiles
- Specified by:
getProfilesin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- the application profiles to use.
-
getBackendVersion
@Deprecated @DeprecatedConfigurationProperty(reason="Backend version no longer required. The kv version is determined during secret retrieval") public int getBackendVersion()Deprecated. -
setEnabled
public void setEnabled(boolean enabled) -
setBackend
-
setDefaultContext
-
setProfileSeparator
-
setApplicationName
-
setProfiles
-
setBackendVersion
public void setBackendVersion(int backendVersion) -
toString
-