Class AppRoleAuthProvider
- java.lang.Object
-
- io.helidon.integrations.vault.auths.approle.AppRoleAuthProvider
-
- All Implemented Interfaces:
AuthMethodProvider<AppRoleAuthRx>,InjectionProvider
public class AppRoleAuthProvider extends Object implements AuthMethodProvider<AppRoleAuthRx>, 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
Constructors Constructor Description AppRoleAuthProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppRoleAuthRxcreateAuth(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<AppRoleAuthRx>supportedMethod()Supported method by this provider.
-
-
-
Method Detail
-
supportedMethod
public AuthMethod<AppRoleAuthRx> supportedMethod()
Description copied from interface:AuthMethodProviderSupported method by this provider.- Specified by:
supportedMethodin interfaceAuthMethodProvider<AppRoleAuthRx>- 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 AppRoleAuthRx createAuth(Config config, RestApi restApi, String path)
Description copied from interface:AuthMethodProviderCreate an auth instance to provide API to access this method.- Specified by:
createAuthin interfaceAuthMethodProvider<AppRoleAuthRx>- 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:InjectionProviderList of injectable types supported by this provider.- Specified by:
injectablesin interfaceInjectionProvider- Returns:
- list of types
-
-