-
public interface VaultMain entry point to Vault operations.To access secrets in the vault, start with
builder()to create a new Vault instance. Once you have a Vault instance, you can access secrets through engines. To get access to secrets, usesecrets(Engine).
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classVault.BuilderFluent API builder forVault.
-
Field Summary
Fields Modifier and Type Field Description static Http.RequestMethodLISTHTTPLISTmethod used by several Vault engines.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tauth(AuthMethod<T> method)Get access to authentication method.<T> Tauth(AuthMethod<T> method, String path)Get access to authentication method, using a custom path.static Vault.Builderbuilder()Fluent API builder to construct new instances.static Vaultcreate(Config config)Create a Vault from configuration.<T extends SecretsRx>
Tsecrets(Engine<T> engine)Get access to secrets using the provided engine, using the default mount point of that engine.<T extends SecretsRx>
Tsecrets(Engine<T> engine, String mount)Get access to secrets using the provided engine, using a custom mount point.<T> Tsys(SysApi<T> api)Get access to sys operations on this Vault, such as to configure engines, policies etc.
-
-
-
Field Detail
-
LIST
static final Http.RequestMethod LIST
HTTPLISTmethod used by several Vault engines.
-
-
Method Detail
-
builder
static Vault.Builder builder()
Fluent API builder to construct new instances.- Returns:
- a new builder
-
create
static Vault create(Config config)
Create a Vault from configuration.- Parameters:
config- configuration- Returns:
- a new Vault
- See Also:
Vault.Builder.config(io.helidon.config.Config)
-
secrets
<T extends SecretsRx> T secrets(Engine<T> engine)
Get access to secrets using the provided engine, using the default mount point of that engine.
-
secrets
<T extends SecretsRx> T secrets(Engine<T> engine, String mount)
Get access to secrets using the provided engine, using a custom mount point.- Type Parameters:
T- type of theSecretsRxthe engine supports, such asKv2Secrets- Parameters:
engine- engine to use, such asKv2Secrets#ENGINEmount- mount point for the engine (such as when the same engine is configured more than once in the Vault)- Returns:
- instance of
SecretsRxspecific to the used engine
-
auth
<T> T auth(AuthMethod<T> method)
Get access to authentication method.- Type Parameters:
T- type of the API class used by the method- Parameters:
method- method to use, such asio.helidon.integrations.vault.AuthMethod.TOKEN- Returns:
- instance of the API class specific to the used method
-
auth
<T> T auth(AuthMethod<T> method, String path)
Get access to authentication method, using a custom path.- Type Parameters:
T- type of the API class used by the method- Parameters:
method- method to use, such asio.helidon.integrations.vault.AuthMethod.TOKENpath- path for the method, such as when configuring multiple instances of the same method- Returns:
- instance of the API class specific to the used method
-
sys
<T> T sys(SysApi<T> api)
Get access to sys operations on this Vault, such as to configure engines, policies etc. (if such operations are supported).- Type Parameters:
T- type of the API- Parameters:
api- API implementation- Returns:
- API instance
-
-