Class AppRoleAuthProvider
java.lang.Object
io.helidon.integrations.vault.auths.approle.AppRoleAuthProvider
- All Implemented Interfaces:
AuthMethodProvider<AppRoleAuth>
,InjectionProvider
public class AppRoleAuthProvider
extends Object
implements AuthMethodProvider<AppRoleAuth>, InjectionProvider
Java Service Loader implementation for AppRole authentication method.
-
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 TypeMethodDescriptioncreateAuth
(Config config, RestApi restApi, String path) Create an auth instance to provide API to access this method.List of injectable types supported by this provider.Supported method by this provider.
-
Constructor Details
-
AppRoleAuthProvider
public AppRoleAuthProvider()Create a new instance.
-
-
Method Details
-
supportedMethod
Description copied from interface:AuthMethodProvider
Supported method by this provider.- Specified by:
supportedMethod
in interfaceAuthMethodProvider<AppRoleAuth>
- Returns:
- method that is supported, used to choose the correct provider for a method
- See Also:
-
createAuth
Description copied from interface:AuthMethodProvider
Create an auth instance to provide API to access this method.- Specified by:
createAuth
in interfaceAuthMethodProvider<AppRoleAuth>
- 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
Description copied from interface:InjectionProvider
List of injectable types supported by this provider.- Specified by:
injectables
in interfaceInjectionProvider
- Returns:
- list of types
-