public static String getPassword(Map<String, String> confMap, String key) {
    String password = confMap.get(key);
    if (password == null) {
      password = getPasswordFromCredentialProvider(confMap.get(JdbcConnectionParams.SSL_STORE_PASSWORD_PATH), key);
    }
    return password;
  }
Method to get the password from the configuration map if available. Otherwise, get it from the credential provider
@param confMap configuration map
@param key param
@return password
jdbc/src/java/org/apache/hive/jdbc/Utils.java