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 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 Manager
        secretMap - The secret configuration containing authentication parameters
        secretsManager - The secrets manager instance for retrieving and updating secrets