Class VaultKvAccessStrategyFactory
- java.lang.Object
-
- org.springframework.cloud.config.server.environment.VaultKvAccessStrategyFactory
-
public final class VaultKvAccessStrategyFactory extends Object
Factory forVaultKvAccessStrategy.- Since:
- 2.0
- Author:
- Haroun Pacquee, Mark Paluch
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static VaultKvAccessStrategyforVersion(org.springframework.web.client.RestOperations rest, String baseUrl, int version, String pathToKey)
-
-
-
Method Detail
-
forVersion
public static VaultKvAccessStrategy forVersion(org.springframework.web.client.RestOperations rest, String baseUrl, int version, String pathToKey)
- 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.
-
-