public class StaticCredentialsProvider extends Object implements RedisCredentialsProvider, RedisCredentialsProvider.ImmediateRedisCredentialsProvider
RedisCredentialsProvider.RedisCredentialsProvider.ImmediateRedisCredentialsProvider| Constructor and Description |
|---|
StaticCredentialsProvider(RedisCredentials credentials)
Create a static
StaticCredentialsProvider object from RedisCredentials. |
StaticCredentialsProvider(String username,
char[] password)
|
| Modifier and Type | Method and Description |
|---|---|
Mono<RedisCredentials> |
resolveCredentials()
Returns
RedisCredentials that can be used to authorize a Redis connection. |
RedisCredentials |
resolveCredentialsNow()
Returns
RedisCredentials that can be used to authorize a Redis connection. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrompublic StaticCredentialsProvider(String username, char[] password)
username - can be null.password - can be null.public StaticCredentialsProvider(RedisCredentials credentials)
StaticCredentialsProvider object from RedisCredentials. The snapshot of the given
credentials is used to create a static representation to avoid credentials changes if the RedisCredentials change
over time.credentials - must not be null.public Mono<RedisCredentials> resolveCredentials()
RedisCredentialsProviderRedisCredentials that can be used to authorize a Redis connection. Each implementation of
RedisCredentialsProvider can 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.resolveCredentials in interface RedisCredentialsProviderresolveCredentials in interface RedisCredentialsProvider.ImmediateRedisCredentialsProviderMono emitting RedisCredentials that can be used to authorize a Redis connection.public RedisCredentials resolveCredentialsNow()
RedisCredentialsProvider.ImmediateRedisCredentialsProviderRedisCredentials that can be used to authorize a Redis connection. Each implementation of
RedisCredentialsProvider can 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.resolveCredentialsNow in interface RedisCredentialsProvider.ImmediateRedisCredentialsProviderRedisCredentials that can be used to authorize a Redis connection.Copyright © 2022 lettuce.io. All rights reserved.