Package io.helidon.integrations.vault
Interface Engine<T extends Secrets>
- Type Parameters:
T
- type of theSecret
provided by the engine
public interface Engine<T extends Secrets>
A secrets engine.
Supported built-in engines are available as constants.
-
Method Details
-
create
static <T extends Secrets> 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
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
Version of the engine if versioned.- Returns:
- version of the engine (such as 1 or 2 for KV engines)
-
secretsType
Implementation class of theSecrets
of this engine.- Returns:
- secrets class
- See Also:
-
defaultMount
String defaultMount()Default path to mount this engine on.- Returns:
- default mount path
-