Class VaultKvAccessStrategyFactory
java.lang.Object
org.springframework.cloud.config.server.environment.VaultKvAccessStrategyFactory
Factory for
VaultKvAccessStrategy.- Since:
- 2.0
- Author:
- Haroun Pacquee, Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionstatic VaultKvAccessStrategyforVersion(org.springframework.web.client.RestOperations rest, String baseUrl, int version, String pathToKey)
-
Method Details
-
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.
-