Class VaultMongoProperties

java.lang.Object
org.springframework.cloud.vault.config.databases.VaultMongoProperties
All Implemented Interfaces:
DatabaseSecretProperties, org.springframework.cloud.vault.config.VaultSecretBackendDescriptor

@ConfigurationProperties("spring.cloud.vault.mongodb") public class VaultMongoProperties extends Object implements DatabaseSecretProperties
Configuration properties for Vault using the MongoDB integration.
Author:
Mark Paluch, Sebastien Nahelou
  • Constructor Details

    • VaultMongoProperties

      public VaultMongoProperties()
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.springframework.cloud.vault.config.VaultSecretBackendDescriptor
    • setEnabled

      public void setEnabled(boolean enabled)
    • getRole

      @Nullable public String getRole()
      Description copied from interface: DatabaseSecretProperties
      Role name.
      Specified by:
      getRole in interface DatabaseSecretProperties
      Returns:
      the role name
    • setRole

      public void setRole(@Nullable String role)
    • isStaticRole

      public boolean isStaticRole()
      Description copied from interface: DatabaseSecretProperties
      Whether the configuration uses static roles.
      Specified by:
      isStaticRole in interface DatabaseSecretProperties
      Returns:
      true if the configuration uses static roles.
    • setStaticRole

      public void setStaticRole(boolean staticRole)
    • getBackend

      public String getBackend()
      Description copied from interface: DatabaseSecretProperties
      Backend path.
      Specified by:
      getBackend in interface DatabaseSecretProperties
      Specified by:
      getBackend in interface org.springframework.cloud.vault.config.VaultSecretBackendDescriptor
      Returns:
      the backend path.
    • setBackend

      public void setBackend(String backend)
    • getUsernameProperty

      public String getUsernameProperty()
      Specified by:
      getUsernameProperty in interface DatabaseSecretProperties
      Returns:
      name of the target property for the obtained username.
    • setUsernameProperty

      public void setUsernameProperty(String usernameProperty)
    • getPasswordProperty

      public String getPasswordProperty()
      Specified by:
      getPasswordProperty in interface DatabaseSecretProperties
      Returns:
      name of the target property for the obtained password.
    • setPasswordProperty

      public void setPasswordProperty(String passwordProperty)