|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdemos.antiSQLInjection.TAntiSQLInjection
public class TAntiSQLInjection
This is the classed used to check sql injection, it can detect following type of sql injection
| Constructor Summary | |
|---|---|
TAntiSQLInjection(EDbVendor dbVendor)
|
|
| Method Summary | |
|---|---|
void |
check_always_false_condition(boolean on)
turn on/off the check of ESQLInjectionType.always_false_condition default is on |
void |
check_always_true_condition(boolean on)
turn on/off the check of ESQLInjectionType.always_true_condition default is on |
void |
check_comment_at_the_end_of_statement(boolean on)
turn on/off the check of ESQLInjectionType.comment_at_the_end_of_statement default is on |
void |
check_not_in_allowed_statement(boolean on)
turn on/off the check of ESQLInjectionType.not_in_allowed_statement default is on |
void |
check_stacking_queries(boolean on)
turn on/off the check of ESQLInjectionType.stacking_queries default is on |
void |
check_union_set(boolean on)
turn on/off the check of ESQLInjectionType.union_set default is on |
void |
disableStatement(ESqlStatementType sqltype)
disable a type of sql statement that allowed to be executed in database. |
void |
enableStatement(ESqlStatementType sqltype)
add a type of sql statement that allowed to be executed in database. |
java.util.ArrayList<ESqlStatementType> |
getEnabledStatements()
get a list of sql statement type that allowed to be executed in database. |
java.util.ArrayList<TSQLInjection> |
getSqlInjections()
|
boolean |
isInjected(java.lang.String sql)
Check is sql was injected or not. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TAntiSQLInjection(EDbVendor dbVendor)
| Method Detail |
|---|
public void check_union_set(boolean on)
on - public void check_not_in_allowed_statement(boolean on)
on - public void check_stacking_queries(boolean on)
on - public void check_comment_at_the_end_of_statement(boolean on)
on - public void check_always_false_condition(boolean on)
on - public void check_always_true_condition(boolean on)
on - public java.util.ArrayList<TSQLInjection> getSqlInjections()
public void enableStatement(ESqlStatementType sqltype)
sqltype - public java.util.ArrayList<ESqlStatementType> getEnabledStatements()
public void disableStatement(ESqlStatementType sqltype)
sqltype - public boolean isInjected(java.lang.String sql)
sql -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||