Interface ValkeyCredentialsProviderFactory
public interface ValkeyCredentialsProviderFactory
Factory interface to create
RedisCredentialsProvider from a ValkeyConfiguration. Credentials can be
associated with username and/or password.
Credentials are based off the given ValkeyConfiguration objects. Changing the credentials in the actual object
affects the constructed RedisCredentials object. Credentials are requested by the Lettuce client after
connecting to the host. Therefore, credential retrieval is subject to complete within the configured connection
creation timeout to avoid connection failures.
- Since:
- 3.0
- Author:
- Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDefault anonymousRedisCredentialswithout username/password. -
Method Summary
Modifier and TypeMethodDescriptiondefault io.lettuce.core.RedisCredentialsProvidercreateCredentialsProvider(ValkeyConfiguration valkeyConfiguration) Create aRedisCredentialsProviderfor data node authentication givenValkeyConfiguration.default io.lettuce.core.RedisCredentialsProvidercreateSentinelCredentialsProvider(ValkeySentinelConfiguration valkeyConfiguration) Create aRedisCredentialsProviderfor Sentinel node authentication givenValkeySentinelConfiguration.
-
Method Details
-
createCredentialsProvider
@Nullable default io.lettuce.core.RedisCredentialsProvider createCredentialsProvider(ValkeyConfiguration valkeyConfiguration) Create aRedisCredentialsProviderfor data node authentication givenValkeyConfiguration.- Parameters:
valkeyConfiguration- theValkeyConfigurationobject.- Returns:
- a
RedisCredentialsProviderthat emitsRedisCredentialsfor data node authentication.
-
createSentinelCredentialsProvider
default io.lettuce.core.RedisCredentialsProvider createSentinelCredentialsProvider(ValkeySentinelConfiguration valkeyConfiguration) Create aRedisCredentialsProviderfor Sentinel node authentication givenValkeySentinelConfiguration.- Parameters:
valkeyConfiguration- theValkeySentinelConfigurationobject.- Returns:
- a
RedisCredentialsProviderthat emitsRedisCredentialsfor sentinel authentication.
-