Class VaultKvAccessStrategyFactory

java.lang.Object
org.springframework.cloud.config.server.environment.VaultKvAccessStrategyFactory

public final class VaultKvAccessStrategyFactory extends Object
Since:
2.0
Author:
Haroun Pacquee, Mark Paluch
  • Method Details

    • forVersion

      public static VaultKvAccessStrategy forVersion(org.springframework.web.client.RestOperations rest, String baseUrl, int version, String pathToKey)
      Create a new VaultKvAccessStrategy given RestOperations, baseUrl, and version.
      Parameters:
      rest - must not be null.
      baseUrl - the Vault base URL.
      version - version of the Vault key-value backend.
      pathToKey - path after the mount-path, under which the key(s) can be found.
      Returns:
      the access strategy.