com.codemagi.burp.MatchRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of burp-suite-utils Show documentation
Show all versions of burp-suite-utils Show documentation
The Burp Suite Utils project provides developers with APIs for building Burp Suite Extensions.
The newest version!
package com.codemagi.burp;
import java.util.regex.Pattern;
/**
*
* @author August Detlefsen [augustd at codemagi dot com]
*/
public class MatchRule {
private String test;
private Pattern pattern;
private Integer matchGroup;
private String type;
private ScanIssueSeverity severity;
private ScanIssueConfidence confidence;
private Integer expectedMatches; //used for testing in cases where one rule can match multiple patterns
public MatchRule(Pattern pattern, Integer matchGroup, String type) {
this.pattern = pattern;
this.matchGroup = matchGroup;
this.type = type;
}
public MatchRule(Pattern pattern, Integer matchGroup, String type, ScanIssueSeverity severity) {
this.pattern = pattern;
this.matchGroup = matchGroup;
this.type = type;
this.severity = severity;
}
public MatchRule(Pattern pattern, Integer matchGroup, String type, ScanIssueSeverity severity, ScanIssueConfidence confidence) {
this.pattern = pattern;
this.matchGroup = matchGroup;
this.type = type;
this.severity = severity;
this.confidence = confidence;
}
public MatchRule(String test, Pattern pattern, Integer matchGroup, String type) {
this.test = test;
this.pattern = pattern;
this.matchGroup = matchGroup;
this.type = type;
}
public MatchRule(String test, Pattern pattern, Integer matchGroup, String type, ScanIssueSeverity severity) {
this.test = test;
this.pattern = pattern;
this.matchGroup = matchGroup;
this.type = type;
this.severity = severity;
}
public String getTest() {
return test;
}
public void setTest(String test) {
this.test = test;
}
public Pattern getPattern() {
return pattern;
}
public void setPattern(Pattern pattern) {
this.pattern = pattern;
}
public Integer getMatchGroup() {
return matchGroup;
}
public void setMatchGroup(Integer matchGroup) {
this.matchGroup = matchGroup;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public ScanIssueSeverity getSeverity() {
return severity;
}
public void setSeverity(ScanIssueSeverity severity) {
this.severity = severity;
}
public ScanIssueConfidence getConfidence() {
return confidence;
}
public void setConfidence(ScanIssueConfidence confidence) {
this.confidence = confidence;
}
public Integer getExpectedMatches() {
return expectedMatches;
}
public void setExpectedMatches(Integer expectedMatches) {
this.expectedMatches = expectedMatches;
}
}