Class JdbcUrlUtils

java.lang.Object
org.apache.gravitino.utils.JdbcUrlUtils

public class JdbcUrlUtils extends Object
Utility class for validating JDBC URLs and configurations. It checks for unsafe parameters specific to MySQL, MariaDB, and PostgreSQL JDBC URLs. Unsafe parameters can lead to security vulnerabilities or unexpected behavior, so this utility helps ensure that JDBC configurations are safe to use.
  • Method Details

    • validateJdbcConfig

      public static void validateJdbcConfig(String driver, String url, Map<String,String> all)
      Validates the JDBC configuration by checking the driver and URL for unsafe parameters.
      Parameters:
      driver - the JDBC driver class name
      url - the JDBC URL
      all - the JDBC configuration properties