Пример #1
0
        public static XUtils_Struts_Joins_V0_1 executeRule_AndReturn_XRuleStrutsObject(
            List <IO2Finding> baseO2Findings, IStrutsMappings strutsMappings, string taintSources_SourceRegEx, string taintSources_SinkRegEx,
            string finalSinks_SourceRegEx, string finalSinks_SinkRegEx, Func <string, string> joinPointFilter)
        {
            var xRuleStuts = new XUtils_Struts_Joins_V0_1()
            {
                findingsWith_BaseO2Findings = baseO2Findings,
                StrutsMappings           = strutsMappings,
                TaintSources_SourceRegEx = taintSources_SourceRegEx,
                TaintSources_SinkRegEx   = taintSources_SinkRegEx,
                FinalSinks_SourceRegEx   = finalSinks_SourceRegEx,
                FinalSinks_SinkRegEx     = finalSinks_SinkRegEx,
                JoinPointFilter          = joinPointFilter
            };

            xRuleStuts.calculateFindings();
            return(xRuleStuts);
        }
        public static XUtils_Struts_Joins_V0_1 executeRule_AndReturn_XRuleStrutsObject(
            List<IO2Finding> baseO2Findings, IStrutsMappings strutsMappings, string taintSources_SourceRegEx, string taintSources_SinkRegEx,
            string finalSinks_SourceRegEx, string finalSinks_SinkRegEx, Func<string, string> joinPointFilter)
        {
            var xRuleStuts = new XUtils_Struts_Joins_V0_1()
            {
                findingsWith_BaseO2Findings = baseO2Findings,
                StrutsMappings = strutsMappings,
                TaintSources_SourceRegEx = taintSources_SourceRegEx,
                TaintSources_SinkRegEx = taintSources_SinkRegEx,
                FinalSinks_SourceRegEx = finalSinks_SourceRegEx,
                FinalSinks_SinkRegEx = finalSinks_SinkRegEx,
                JoinPointFilter = joinPointFilter
            };

            xRuleStuts.calculateFindings();
            return xRuleStuts;
        }