Interface CredentialsProvider

All Known Implementing Classes:
EnvCredentialsProvider, HadoopCredentialsProvider, PlainCredentialsProvider, VaultCredentialsProvider

public interface CredentialsProvider
Provider of authentication credentials.
  • Field Details

    • logger

      static final org.slf4j.Logger logger
  • Method Details

    • getCredentials

      Map<String,String> getCredentials()
      Returns map with authentication credentials. Key is the credential name, for example "username" and map value is corresponding credential value.
    • getUserCredentials

      default Map<String,String> getUserCredentials(String username)
      This method returns the credentials associated with a specific user.
      Parameters:
      username - The logged in username
      Returns:
      A Map of the logged in user's credentials.
    • setUserCredentials

      default void setUserCredentials(String username, String password, String queryUser)