Package redis.clients.jedis
Interface RedisCredentialsProvider
- All Superinterfaces:
Supplier<RedisCredentials>
- All Known Implementing Classes:
DefaultRedisCredentialsProvider
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcleanUp()Clean up credentials (e.g.default voidprepare()PrepareRedisCredentialsbeforeSupplier.get()is called.
-
Method Details
-
prepare
default void prepare()PrepareRedisCredentialsbeforeSupplier.get()is called.An application may:
- Load credentials from the credentials management system
- Reload credentials when credentials are rotated.
- Reload credentials after an authentication error (e.g. NOAUTH, WRONGPASS, etc).
- Minimize the time that the password lives in the memory (in combination with
cleanUp()).
-
cleanUp
default void cleanUp()Clean up credentials (e.g. from memory).- See Also:
-