Interface InitializableCredentialsProvider
-
- All Superinterfaces:
CredentialsProvider
- All Known Implementing Classes:
DataLakeGen2OAuthCredentialsProvider
,OAuthCredentialsProvider
public interface InitializableCredentialsProvider extends CredentialsProvider
Extended contract for credentials providers that require initialization with configuration from AWS Secrets Manager. Implementations must be initialized before use and may support various authentication methods including OAuth, username/password, or other configurable authentication schemes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
initialize(String secretName, Map<String,String> secretMap, CachableSecretsManager secretsManager)
Initializes this credential provider with the given configuration.-
Methods inherited from interface com.amazonaws.athena.connector.credentials.CredentialsProvider
getCredential, getCredentialMap
-
-
-
-
Method Detail
-
initialize
void initialize(String secretName, Map<String,String> secretMap, CachableSecretsManager secretsManager)
Initializes this credential provider with the given configuration. Must be called exactly once before any calls to getCredential().- Parameters:
secretName
- The name of the secret in AWS Secrets ManagersecretMap
- The secret configuration containing authentication parameterssecretsManager
- The secrets manager instance for retrieving and updating secrets
-
-