com.atlassian.jira.security.xsrf
Class XsrfVulnerabilityDetectionSQLInterceptor

java.lang.Object
  extended by com.atlassian.jira.security.xsrf.XsrfVulnerabilityDetectionSQLInterceptor
All Implemented Interfaces:
org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor

public class XsrfVulnerabilityDetectionSQLInterceptor
extends Object
implements org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor

SQL Interceptor that detects changes to the database that aren't xsrf protected

Since:
v4.1

Constructor Summary
XsrfVulnerabilityDetectionSQLInterceptor()
           
 
Method Summary
 void afterSuccessfulExecution(String sqlString, List<String> parameterValues, Statement statement, ResultSet resultSet, int rowsUpdated)
           
 void beforeExecution(String sqlString, List<String> parameterValues, Statement statement)
           
 void onException(String sqlString, List<String> parameterValues, Statement statement, SQLException sqlException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsrfVulnerabilityDetectionSQLInterceptor

public XsrfVulnerabilityDetectionSQLInterceptor()
Method Detail

beforeExecution

public void beforeExecution(String sqlString,
                            List<String> parameterValues,
                            Statement statement)
Specified by:
beforeExecution in interface org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor

afterSuccessfulExecution

public void afterSuccessfulExecution(String sqlString,
                                     List<String> parameterValues,
                                     Statement statement,
                                     ResultSet resultSet,
                                     int rowsUpdated)
Specified by:
afterSuccessfulExecution in interface org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor

onException

public void onException(String sqlString,
                        List<String> parameterValues,
                        Statement statement,
                        SQLException sqlException)
Specified by:
onException in interface org.ofbiz.core.entity.jdbc.interceptors.SQLInterceptor


Copyright © 2002-2011 Atlassian. All Rights Reserved.