Class DefaultSqlFirewallTrigger
java.lang.Object
org.kawanfw.sql.api.server.firewall.trigger.DefaultSqlFirewallTrigger
- All Implemented Interfaces:
SqlFirewallTrigger
public class DefaultSqlFirewallTrigger extends Object implements SqlFirewallTrigger
Default trigger for a SQL database when a
SqlFirewallManager
detects
an attack. This default implementation does nothing.- Since:
- 11.0
- Author:
- Nicolas de Pomereu
-
Constructor Summary
Constructors Constructor Description DefaultSqlFirewallTrigger()
-
Method Summary
Modifier and Type Method Description void
runIfStatementRefused(SqlEvent sqlEvent, SqlFirewallManager sqlFirewallManager, Connection connection)
This default implementation does nothing.
-
Constructor Details
-
DefaultSqlFirewallTrigger
public DefaultSqlFirewallTrigger()
-
-
Method Details
-
runIfStatementRefused
public void runIfStatementRefused(SqlEvent sqlEvent, SqlFirewallManager sqlFirewallManager, Connection connection) throws IOException, SQLExceptionThis default implementation does nothing.- Specified by:
runIfStatementRefused
in interfaceSqlFirewallTrigger
- 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).sqlFirewallManager
- the instance that triggers this call.connection
- The current SQL/JDBCConnection
- Throws:
IOException
- if an IOException occursSQLException
- if a SQLException occurs
-