Class TokenAuthProvider
java.lang.Object
io.helidon.integrations.vault.auths.token.TokenAuthProvider
- All Implemented Interfaces:
AuthMethodProvider<TokenAuthRx>
,InjectionProvider
public class TokenAuthProvider
extends Object
implements AuthMethodProvider<TokenAuthRx>, InjectionProvider
Java Service Loader service for Token Authentication method support.
-
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
-
TokenAuthProvider
public TokenAuthProvider()
-
-
Method Details
-
supportedMethod
Description copied from interface:AuthMethodProvider
Supported method by this provider.- Specified by:
supportedMethod
in interfaceAuthMethodProvider<TokenAuthRx>
- 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<TokenAuthRx>
- 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
-