Class HashicorpVaultConfiguration

java.lang.Object
org.apache.camel.vault.VaultConfiguration
org.apache.camel.vault.HashicorpVaultConfiguration

public class HashicorpVaultConfiguration extends VaultConfiguration
Configuration for access to Hashicorp Vault Secrets.
Since:
3.19
  • Constructor Details

    • HashicorpVaultConfiguration

      public HashicorpVaultConfiguration()
  • Method Details

    • getToken

      public @Nullable String getToken()
    • setToken

      public void setToken(@Nullable String token)
      Token to access hashicorp vault
    • getHost

      public @Nullable String getHost()
    • setHost

      public void setHost(@Nullable String host)
      Host to access hashicorp vault
    • getPort

      public @Nullable String getPort()
    • setPort

      public void setPort(@Nullable String port)
      Port to access hashicorp vault
    • getScheme

      public @Nullable String getScheme()
    • setScheme

      public void setScheme(@Nullable String scheme)
      Scheme to access hashicorp vault
    • isCloud

      public boolean isCloud()
    • setCloud

      public void setCloud(boolean cloud)
      Determine if the Hashicorp Vault is deployed on Hashicorp Cloud or not
    • getNamespace

      public @Nullable String getNamespace()
    • setNamespace

      public void setNamespace(@Nullable String namespace)
      If the Hashicorp Vault instance is deployed on Hashicorp Cloud, this field will determine the namespace
    • isRefreshEnabled

      public boolean isRefreshEnabled()
    • setRefreshEnabled

      public void setRefreshEnabled(boolean refreshEnabled)
      Whether to automatically reload Camel upon secrets being updated in Hashicorp Vault.
    • getRefreshPeriod

      public long getRefreshPeriod()
    • setRefreshPeriod

      public void setRefreshPeriod(long refreshPeriod)
      The period (millis) between checking Hashicorp Vault for updated secrets.
    • getSecrets

      public @Nullable String getSecrets()
    • setSecrets

      public void setSecrets(@Nullable String secrets)
      Specify the secret names (or pattern) to check for updates. Multiple secrets can be separated by comma.