Class TokenVaultAuth
java.lang.Object
io.helidon.integrations.vault.auths.token.TokenVaultAuth
- All Implemented Interfaces:
VaultAuth
Java Service Loader implementation for authenticating using a token.
You can create a new instance using
builder()
.
To use a custom built instance, use Vault.Builder.addVaultAuth(VaultAuth)
.-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(Config config, Vault.Builder vaultBuilder) static TokenVaultAuth.Builder
builder()
Create a new builder.
-
Constructor Details
-
TokenVaultAuth
public TokenVaultAuth()Required for service loader.
-
-
Method Details
-
builder
Create a new builder.- Returns:
- new builder
-
authenticate
Description copied from interface:VaultAuth
- Specified by:
authenticate
in interfaceVaultAuth
- Parameters:
config
- configuration (may be empty if not provided by user)vaultBuilder
- vault builder- Returns:
RestApi
in case this Vault authentication can authenticate
-