private void checkConfidentiality(AuthenticationPlugin plugin) throws SQLException {
  if (plugin.requiresConfidentiality() && !isSSLEstablished()) {
    throw SQLError.createSQLException(Messages.getString("Connection.AuthenticationPluginRequiresSSL",new Object[]{plugin.getProtocolPluginName()}),getExceptionInterceptor());
  }
}

private void checkConfidentiality ( AuthenticationPlugin plugin ) throws SQLException { if ( plugin . requiresConfidentiality ( ) && ! isSSLEstablished ( ) ) { throw SQLError . createSQLException ( Messages . getString ( "Connection.AuthenticationPluginRequiresSSL" , new Object [ ] { plugin . getProtocolPluginName ( ) } ) , getExceptionInterceptor ( ) ) ; } }
check if given plugin requires confidentiality , but connection is without ssl
