Class TokenVaultAuth
- java.lang.Object
-
- io.helidon.integrations.vault.auths.token.TokenVaultAuth
-
- All Implemented Interfaces:
VaultAuth
@Priority(5000) public class TokenVaultAuth extends Object implements VaultAuth
Java Service Loader implementation for authenticating using a token. You can create a new instance usingbuilder()
. To use a custom built instance, useVault.Builder.addVaultAuth(io.helidon.integrations.vault.spi.VaultAuth)
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenVaultAuth.Builder
Fluent API builder forTokenVaultAuth
.
-
Constructor Summary
Constructors Constructor Description TokenVaultAuth()
Required for service loader.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<RestApi>
authenticate(Config config, Vault.Builder vaultBuilder)
static TokenVaultAuth.Builder
builder()
Create a new builder.
-
-
-
Method Detail
-
builder
public static TokenVaultAuth.Builder builder()
Create a new builder.- Returns:
- new builder
-
authenticate
public Optional<RestApi> authenticate(Config config, Vault.Builder vaultBuilder)
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
-
-