Package com.atlassian.secrets.vault.auth
Interface VaultAuthenticationProvider
- All Known Implementing Classes:
DefaultVaultAuthenticationProvider
public interface VaultAuthenticationProvider
The VaultAuthenticationProvider class provides methods for retrieving the appropriate
authentication method for interacting with a vault.
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.vault.authentication.ClientAuthenticationgetAuthentication(VaultConfig params) Retrieves the appropriate authentication method based on the provided authentication type.
-
Method Details
-
getAuthentication
Retrieves the appropriate authentication method based on the provided authentication type.- Parameters:
params- The parameters to configure Vault client.- Returns:
- The
ClientAuthenticationcorresponding to the provided authentication type or Token method if no method is provided - Throws:
SecretStoreException- if the authentication configuration is not found for provided authentication method.
-