Package org.apache.gravitino.utils
Class JdbcUrlUtils
java.lang.Object
org.apache.gravitino.utils.JdbcUrlUtils
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 Summary
-
Method Details
-
validateJdbcConfig
Validates the JDBC configuration by checking the driver and URL for unsafe parameters.- Parameters:
driver
- the JDBC driver class nameurl
- the JDBC URLall
- the JDBC configuration properties
-