public interface RedisCredentials
| Modifier and Type | Method and Description |
|---|---|
char[] |
getPassword()
Retrieve the Redis password, used to authenticate the user interacting with Redis.
|
String |
getUsername()
Retrieve the Redis user, used to identify the user interacting with Redis.
|
boolean |
hasPassword()
Return whether the password is configured.
|
boolean |
hasUsername()
Return whether the username is configured.
|
static RedisCredentials |
just(String username,
char[] password)
|
static RedisCredentials |
just(String username,
CharSequence password)
|
String getUsername()
null if not set.hasUsername()boolean hasUsername()
true if the username is configured; false otherwise.char[] getPassword()
null if not set.hasUsername()boolean hasPassword()
true if the password is configured; false otherwisestatic RedisCredentials just(String username, CharSequence password)
username - can be nullpassword - can be nullRedisCredentials object from username and passwordstatic RedisCredentials just(String username, char[] password)
username - can be nullpassword - can be nullRedisCredentials object from username and passwordCopyright © 2025 lettuce.io. All rights reserved.