Class DenyDdlManager

java.lang.Object
org.kawanfw.sql.api.server.firewall.DefaultSqlFirewallManager
org.kawanfw.sql.api.server.firewall.DenyDdlManager
All Implemented Interfaces:
SqlFirewallManager

public class DenyDdlManager
extends DefaultSqlFirewallManager
implements SqlFirewallManager
Firewall manager that denies any DDL (Data Definition Language) call.
Since:
4.0
Author:
Nicolas de Pomereu
  • Constructor Details

    • DenyDdlManager

      public DenyDdlManager()
  • Method Details

    • allowSqlRunAfterAnalysis

      public boolean allowSqlRunAfterAnalysis​(SqlEvent sqlEvent, Connection connection) throws IOException, SQLException
      Description copied from interface: SqlFirewallManager
      Allows to analyze the SQL call event asked by the client side and thus allow or forbid the SQL execution on the server.
      If the analysis defined by the method returns false, the SQL statement won't be executed.
      Specified by:
      allowSqlRunAfterAnalysis in interface SqlFirewallManager
      Overrides:
      allowSqlRunAfterAnalysis in class DefaultSqlFirewallManager
      Parameters:
      sqlEvent - the SQL event asked by the client side. Contains all info about the SQL call (client username, database name, IP Address of the client, and SQL statement details)
      connection - The current SQL/JDBC Connection
      Returns:
      false if the SQL statement is DDL (Data Definition Language).
      Throws:
      IOException - if an IOException occurs
      SQLException - if a SQLException occurs