Class Kv2EngineProvider
java.lang.Object
io.helidon.integrations.vault.secrets.kv2.Kv2EngineProvider
- All Implemented Interfaces:
InjectionProvider
,SecretsEngineProvider<Kv2Secrets>
public class Kv2EngineProvider
extends Object
implements SecretsEngineProvider<Kv2Secrets>, InjectionProvider
Java Service Loader implementation of Vault KV version 2 secrets engine.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.helidon.integrations.vault.spi.InjectionProvider
InjectionProvider.CreateInstanceFunction<T>, InjectionProvider.InjectionType<T>, InjectionProvider.InstanceConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateSecrets
(Config config, RestApi restAccess, String mount) Create a secrets instance to provide API to access this engine.List of injectable types supported by this provider.Supported engine by this provider.
-
Constructor Details
-
Kv2EngineProvider
public Kv2EngineProvider()
-
-
Method Details
-
supportedEngine
Description copied from interface:SecretsEngineProvider
Supported engine by this provider.- Specified by:
supportedEngine
in interfaceSecretsEngineProvider<Kv2Secrets>
- Returns:
- engine that is supported, used to choose the correct provider for an engine
- See Also:
-
createSecrets
Description copied from interface:SecretsEngineProvider
Create a secrets instance to provide API to access this engine.- Specified by:
createSecrets
in interfaceSecretsEngineProvider<Kv2Secrets>
- Parameters:
config
- configuration that can be used to customize the enginerestAccess
- to access REST API of the vault, preconfigured with tokenmount
- mount point of this engine's secrets- Returns:
- a new secrets instance to be used to access secrets
-
injectables
Description copied from interface:InjectionProvider
List of injectable types supported by this provider.- Specified by:
injectables
in interfaceInjectionProvider
- Returns:
- list of types
-