Package org.redisson.config
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 Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<Void> Returns a CompletionStage that completes when the next credential renewal is needed.resolve(InetSocketAddress address) Asynchronously resolves Credentials object for specified Valkey or Redis nodeaddress.
-
Method Details
-
resolve
Asynchronously resolves Credentials object for specified Valkey or Redis nodeaddress.- Parameters:
address- address of Valkey or Redis node- Returns:
- Credentials object
-
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:
-