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, VaultKeyValueBackendPropertiesSupportConfiguration properties for Vault using the key-value backend.- Since:
- 2.0
- Author:
- Mark Paluch
-
-
Constructor Summary
Constructors Constructor Description VaultKeyValueBackendProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetApplicationName()StringgetBackend()intgetBackendVersion()Deprecated.StringgetDefaultContext()List<String>getProfiles()StringgetProfileSeparator()booleanisEnabled()voidsetApplicationName(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)StringtoString()
-
-
-
Field Detail
-
PREFIX
public static final String PREFIX
Configuration prefix for config properties.- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public String getBackend()
- Specified by:
getBackendin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- mound path of the secret backend.
-
getDefaultContext
public String getDefaultContext()
- Specified by:
getDefaultContextin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- default context path. Can be empty.
-
getProfileSeparator
public String getProfileSeparator()
- Specified by:
getProfileSeparatorin interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- profile separator character.
-
getApplicationName
public String getApplicationName()
- Specified by:
getApplicationNamein interfaceVaultKeyValueBackendPropertiesSupport- Returns:
- the application name to use.
-
getProfiles
public List<String> 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
public void setBackend(String backend)
-
setDefaultContext
public void setDefaultContext(String defaultContext)
-
setProfileSeparator
public void setProfileSeparator(String profileSeparator)
-
setApplicationName
public void setApplicationName(String applicationName)
-
setBackendVersion
public void setBackendVersion(int backendVersion)
-
-