Exemplo n.º 1
0
 @Override
 public void loadSettings(DBWHandlerConfiguration configuration) {
   requireSSQL.setSelection(
       CommonUtils.getBoolean(
           configuration.getProperties().get(MySQLConstants.PROP_REQUIRE_SSL), false));
   veryServerCert.setSelection(
       CommonUtils.getBoolean(
           configuration.getProperties().get(MySQLConstants.PROP_VERIFY_SERVER_SERT), true));
   allowPublicKeyRetrieval.setSelection(
       CommonUtils.getBoolean(
           configuration.getProperties().get(MySQLConstants.PROP_SSL_PUBLIC_KEY_RETRIEVE), false));
   clientCertText.setText(
       CommonUtils.notEmpty(
           configuration.getProperties().get(MySQLConstants.PROP_SSL_CLIENT_CERT)));
   clientKeyText.setText(
       CommonUtils.notEmpty(
           configuration.getProperties().get(MySQLConstants.PROP_SSL_CLIENT_KEY)));
   clientCAText.setText(
       CommonUtils.notEmpty(configuration.getProperties().get(MySQLConstants.PROP_SSL_CA_CERT)));
   cipherSuitesText.setText(
       CommonUtils.notEmpty(
           configuration.getProperties().get(MySQLConstants.PROP_SSL_CIPHER_SUITES)));
   //
   // debugSSL.setSelection(CommonUtils.getBoolean(configuration.getProperties().get(MySQLConstants.PROP_SSL_DEBUG), false));
 }