All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.RedisCredentialsProvider Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis;

import java.util.function.Supplier;

public interface RedisCredentialsProvider extends Supplier {

  /**
   * Prepare {@link RedisCredentials} before {@link RedisCredentialsProvider#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 * {@link RedisCredentialsProvider#cleanUp()}).
  • *
*/ default void prepare() { } /** * Clean up credentials (e.g. from memory). * * @see RedisCredentialsProvider#prepare() */ default void cleanUp() { } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy