public static interface RedisConfiguration.WithAuthentication
RedisConfiguration part suitable for configurations that may use authentication when connecting.| Modifier and Type | Method and Description |
|---|---|
RedisPassword |
getPassword()
Get the RedisPassword to use when connecting.
|
String |
getUsername()
Get the username to use when connecting.
|
default void |
setPassword(char[] password)
Create and set a
RedisPassword for given String. |
void |
setPassword(RedisPassword password)
Create and set a
RedisPassword for given String. |
default void |
setPassword(String password)
Create and set a
RedisPassword for given String. |
void |
setUsername(String username)
Create and set a username with the given
String. |
void setUsername(@Nullable String username)
String. Requires Redis 6 or newer.username - the username.default void setPassword(@Nullable String password)
RedisPassword for given String.password - can be null.default void setPassword(@Nullable char[] password)
RedisPassword for given String.password - can be null.void setPassword(RedisPassword password)
RedisPassword for given String.password - must not be null use RedisPassword.none() instead.@Nullable String getUsername()
RedisPassword getPassword()
RedisPassword.none() if none set.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.