Package io.jpostman.vault
Interface VaultAuthenticator
-
- All Known Implementing Classes:
DefaultVaultAuthenticator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface VaultAuthenticator
Strategy interface for authenticating with Vault and returning an authenticated client.Applications can implement this interface when they need custom authentication logic, a company-specific Vault flow, or behavior that is not supported by
DefaultVaultAuthenticator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.github.jopenlibs.vault.Vaultauthenticate(VaultSettings settings)Authenticates with Vault using the supplied settings and returns an authenticated client.
-
-
-
Method Detail
-
authenticate
io.github.jopenlibs.vault.Vault authenticate(VaultSettings settings) throws Exception
Authenticates with Vault using the supplied settings and returns an authenticated client.- Parameters:
settings- Vault connection and authentication settings- Returns:
- authenticated Vault client
- Throws:
Exception- if authentication fails or the Vault client cannot be created
-
-