Class K8sAuthProvider
- java.lang.Object
-
- io.helidon.integrations.vault.auths.k8s.K8sAuthProvider
-
- All Implemented Interfaces:
AuthMethodProvider<K8sAuthRx>
,InjectionProvider
public class K8sAuthProvider extends Object implements AuthMethodProvider<K8sAuthRx>, InjectionProvider
Java Service Loader implementation for Vault authentication method based on Kubernetes.
-
-
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
Constructors Constructor Description K8sAuthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description K8sAuthRx
createAuth(Config config, RestApi restApi, String path)
Create an auth instance to provide API to access this method.List<InjectionProvider.InjectionType<?>>
injectables()
List of injectable types supported by this provider.AuthMethod<K8sAuthRx>
supportedMethod()
Supported method by this provider.
-
-
-
Method Detail
-
supportedMethod
public AuthMethod<K8sAuthRx> supportedMethod()
Description copied from interface:AuthMethodProvider
Supported method by this provider.- Specified by:
supportedMethod
in interfaceAuthMethodProvider<K8sAuthRx>
- Returns:
- method that is supported, used to choose the correct provider for a method
- See Also:
Vault.auth(io.helidon.integrations.vault.AuthMethod)
-
createAuth
public K8sAuthRx createAuth(Config config, RestApi restApi, String path)
Description copied from interface:AuthMethodProvider
Create an auth instance to provide API to access this method.- Specified by:
createAuth
in interfaceAuthMethodProvider<K8sAuthRx>
- Parameters:
config
- configuration that can be used to customize the enginerestApi
- to access REST API of the vault, preconfigured with tokenpath
- path of this auth method instance- Returns:
- a new secrets instance to be used to access secrets
-
injectables
public List<InjectionProvider.InjectionType<?>> injectables()
Description copied from interface:InjectionProvider
List of injectable types supported by this provider.- Specified by:
injectables
in interfaceInjectionProvider
- Returns:
- list of types
-
-