Class VaultCassandraProperties
java.lang.Object
org.springframework.cloud.vault.config.databases.VaultCassandraProperties
- All Implemented Interfaces:
DatabaseSecretProperties,org.springframework.cloud.vault.config.VaultSecretBackendDescriptor
@ConfigurationProperties("spring.cloud.vault.cassandra")
@Validated
public class VaultCassandraProperties
extends Object
implements DatabaseSecretProperties
Configuration properties for Vault using the Apache Cassandra integration.
- Author:
- Mark Paluch, Sebastien Nahelou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBackend path.getRole()Role name.booleanbooleanWhether the configuration uses static roles.voidsetBackend(String backend) voidsetEnabled(boolean enabled) voidsetPasswordProperty(String passwordProperty) voidvoidsetStaticRole(boolean staticRole) voidsetUsernameProperty(String usernameProperty)
-
Constructor Details
-
VaultCassandraProperties
public VaultCassandraProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()- Specified by:
isEnabledin interfaceorg.springframework.cloud.vault.config.VaultSecretBackendDescriptor
-
setEnabled
public void setEnabled(boolean enabled) -
getRole
Description copied from interface:DatabaseSecretPropertiesRole name.- Specified by:
getRolein interfaceDatabaseSecretProperties- Returns:
- the role name
-
setRole
-
isStaticRole
public boolean isStaticRole()Description copied from interface:DatabaseSecretPropertiesWhether the configuration uses static roles.- Specified by:
isStaticRolein interfaceDatabaseSecretProperties- Returns:
- true if the configuration uses static roles.
-
setStaticRole
public void setStaticRole(boolean staticRole) -
getBackend
Description copied from interface:DatabaseSecretPropertiesBackend path.- Specified by:
getBackendin interfaceDatabaseSecretProperties- Specified by:
getBackendin interfaceorg.springframework.cloud.vault.config.VaultSecretBackendDescriptor- Returns:
- the backend path.
-
setBackend
-
getUsernameProperty
- Specified by:
getUsernamePropertyin interfaceDatabaseSecretProperties- Returns:
- name of the target property for the obtained username.
-
setUsernameProperty
-
getPasswordProperty
- Specified by:
getPasswordPropertyin interfaceDatabaseSecretProperties- Returns:
- name of the target property for the obtained password.
-
setPasswordProperty
-