Interface VaultConnectorBuilder
-
- All Known Implementing Classes:
HTTPVaultConnectorBuilder
,HTTPVaultConnectorFactory
,VaultConnectorFactory
public interface VaultConnectorBuilder
Abstract Vault Connector Builder interface. Provides builder style for Vault connectors.- Since:
- 0.8.0
- Author:
- Stefan Kalscheuer
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description VaultConnector
build()
Build command, produces connector after initialization.VaultConnector
buildAndAuth()
Build connector and authenticate with token set in factory or from environment.static HTTPVaultConnectorBuilder
http()
Get Factory implementation for HTTP Vault Connector.
-
-
-
Method Detail
-
http
static HTTPVaultConnectorBuilder http()
Get Factory implementation for HTTP Vault Connector.- Returns:
- HTTP Connector Factory
-
build
VaultConnector build()
Build command, produces connector after initialization.- Returns:
- Vault Connector instance.
-
buildAndAuth
VaultConnector buildAndAuth() throws VaultConnectorException
Build connector and authenticate with token set in factory or from environment.- Returns:
- Authenticated Vault connector instance.
- Throws:
VaultConnectorException
- if authentication failed- Since:
- 0.6.0
-
-