@FunctionalInterface public interface RedisCredentialsProvider
RedisCredentialsthat are used for authentication. A commonly-used implementation is
StaticCredentialsProviderfor a fixed set of credentials.
Credentials are requested by the driver after connecting to the server. Therefore, credential retrieval is subject to complete within the connection creation timeout to avoid connection failures.
|Modifier and Type||Interface and Description|
|Modifier and Type||Method and Description|
Creates a new
RedisCredentialsthat can be used to authorize a Redis connection. Each implementation of
RedisCredentialsProvidercan choose its own strategy for loading credentials. For example, an implementation might load credentials from an existing key management system, or load new credentials when credentials are rotated. If an error occurs during the loading of credentials or credentials could not be found, a runtime exception will be raised.
RedisCredentialsthat can be used to authorize a Redis connection.
static RedisCredentialsProvider from(Supplier<RedisCredentials> supplier)
RedisCredentialsProviderfrom a given
supplier- must not be
RedisCredentialsusing credentials from
Copyright © 2023 lettuce.io. All rights reserved.