Package io.helidon.integrations.vault
Interface Engine<T extends SecretsRx>
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static <T extends SecretsRx>
Engine<T>create(Class<T> secrets, String type, String defaultMount)
Create an engine.static <T extends SecretsRx>
Engine<T>create(Class<T> secrets, String type, String defaultMount, String version)
Create a new versioned engine.String
defaultMount()
Default path to mount this engine on.Class<T>
secretsType()
Implementation class of theSecretsRx
of this engine.String
type()
Type of the engine as used in the REST API.Optional<String>
version()
Version of the engine if versioned.
-
-
-
Method Detail
-
create
static <T extends SecretsRx> Engine<T> create(Class<T> secrets, String type, String defaultMount, String version)
Create a new versioned engine.- Type Parameters:
T
- type of secrets- Parameters:
secrets
- secrets classtype
- type of enginedefaultMount
- default path to mount this engine onversion
- version of engine- Returns:
- a new engine
-
create
static <T extends SecretsRx> Engine<T> create(Class<T> secrets, String type, String defaultMount)
Create an engine.- Type Parameters:
T
- type of secrets- Parameters:
secrets
- secrets classtype
- type of enginedefaultMount
- default path to mount this engine on- Returns:
- a new engine
-
type
String type()
Type of the engine as used in the REST API.- Returns:
- type of the engine, such as
kv
-
version
Optional<String> version()
Version of the engine if versioned.- Returns:
- version of the engine (such as 1 or 2 for KV engines)
-
secretsType
Class<T> secretsType()
Implementation class of theSecretsRx
of this engine.- Returns:
- secrets class
- See Also:
Vault.secrets(Engine)
-
defaultMount
String defaultMount()
Default path to mount this engine on.- Returns:
- default mount path
-
-