Interface RedisCredentialsProvider

All Superinterfaces:
Supplier<RedisCredentials>
All Known Implementing Classes:
DefaultRedisCredentialsProvider

public interface RedisCredentialsProvider extends Supplier<RedisCredentials>
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clean up credentials (e.g.
    default void
    Prepare RedisCredentials before Supplier.get() is called.

    Methods inherited from interface java.util.function.Supplier

    get
  • Method Details

    • prepare

      default void prepare()
      Prepare RedisCredentials before Supplier.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: