Implement allowPublicKeyRetrieval option in mysql datasource

This commit is contained in:
Gabriele C
2022-07-18 13:03:05 +02:00
parent d07cb90858
commit 0ac1854a52
3 changed files with 15 additions and 2 deletions
@@ -37,6 +37,11 @@ public final class DatabaseSettings implements SettingsHolder {
public static final Property<Boolean> MYSQL_CHECK_SERVER_CERTIFICATE =
newProperty( "DataSource.mySQLCheckServerCertificate", true );
@Comment({"Authorize client to retrieve RSA server public key.",
"Advanced option, ignore if you don't know what it means."})
public static final Property<Boolean> MYSQL_ALLOW_PUBLIC_KEY_RETRIEVAL =
newProperty( "DataSource.mySQLAllowPublicKeyRetrieval", true );
@Comment("Username to connect to the MySQL database")
public static final Property<String> MYSQL_USERNAME =
newProperty("DataSource.mySQLUsername", "authme");