To list a driver’s current connection settings, use Driver.getDriverPropertyInfo(String url, Properties props). This code returns an array of DriverPropertyInfo objects containing:
Driver properties
Current settings on which the driver properties are based
The URL and properties passed in