Interface CredentialsResolver

All Known Implementing Classes:
DefaultCredentialsResolver, EntraIdCredentialsResolver

public interface CredentialsResolver
Credentials resolver interface for dynamically managing Valkey or Redis authentication credentials during connection and reconnection processes.
Author:
Nikita Koksharov
  • Method Details

    • resolve

      Asynchronously resolves Credentials object for specified Valkey or Redis node address .
      Parameters:
      address - address of Valkey or Redis node
      Returns:
      Credentials object
    • nextRenewal

      default CompletionStage<Void> nextRenewal()
      Returns a CompletionStage that completes when the next credential renewal is needed.

      The returned CompletionStage should complete when an external authentication system changed credentials and CompletionStage instance returned by resolve(InetSocketAddress) method has been updated.

      For continuous monitoring, implementations should return a new CompletionStage instance after each credentials update to support chaining multiple renewal events.

      Returns:
      CompletionStage that completes when credential renewal is needed.
      See Also: