Interface AuditIssue
-
public interface AuditIssueThis interface is used to retrieve details of audit issues. Extensions can obtain details of issues by registering anAuditIssueHandler. Extensions can also add custom audit issues by registering anScanCheckor callingSiteMap.add(AuditIssue), and providing their own implementations of this interface. Note that issue descriptions and other text generated by extensions are subject to an HTML whitelist that allows only formatting tags and simple hyperlinks.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AuditIssueauditIssue(java.lang.String name, java.lang.String detail, java.lang.String remediation, java.lang.String baseUrl, AuditIssueSeverity severity, AuditIssueConfidence confidence, java.lang.String background, java.lang.String remediationBackground, AuditIssueSeverity typicalSeverity, MarkedHttpRequestResponse... requestResponses)This method can be used to create a default implementation of an audit issue for a URL.static AuditIssueauditIssue(java.lang.String name, java.lang.String detail, java.lang.String remediation, java.lang.String baseUrl, AuditIssueSeverity severity, AuditIssueConfidence confidence, java.lang.String background, java.lang.String remediationBackground, AuditIssueSeverity typicalSeverity, java.util.List<MarkedHttpRequestResponse> requestResponses)This method can be used to create a default implementation of an audit issue for a URL.java.lang.StringbaseUrl()This method returns the base URL for which this issue was generated.AuditIssueConfidenceconfidence()This method returns the issue confidence level.AuditIssueDefinitiondefinition()This method returns the definition for this issue.java.lang.Stringdetail()This method returns detailed information about this specific instance of the issue.HttpServicehttpService()This method returns the HTTP service for which the issue was generated.java.lang.Stringname()This method returns the name of this issue type.java.lang.Stringremediation()This method returns detailed information about the remediation for this specific instance of the issue.java.util.List<MarkedHttpRequestResponse>requestResponses()This method returns the HTTP request/response messages that caused the issue to be generated.AuditIssueSeverityseverity()This method returns the issue severity level.
-
-
-
Method Detail
-
auditIssue
static AuditIssue auditIssue(java.lang.String name, java.lang.String detail, java.lang.String remediation, java.lang.String baseUrl, AuditIssueSeverity severity, AuditIssueConfidence confidence, java.lang.String background, java.lang.String remediationBackground, AuditIssueSeverity typicalSeverity, MarkedHttpRequestResponse... requestResponses)
This method can be used to create a default implementation of an audit issue for a URL.- Parameters:
name- The name of the issue type.detail- The detailed information about the issue.remediation- The detailed information about the remediation for the issue.baseUrl- The base URL for which the issue is generated.severity- TheAuditIssueSeveritylevel.confidence- TheAuditIssueConfidencelevel.background- The background description for the type of issue.remediationBackground- The background description of the remediation for this type of issue.typicalSeverity- The typicalAuditIssueSeveritylevel.requestResponses- TheHttpRequestResponseobjects on the basis of which the issue is generated.- Returns:
- The audit issue for the URL.
-
auditIssue
static AuditIssue auditIssue(java.lang.String name, java.lang.String detail, java.lang.String remediation, java.lang.String baseUrl, AuditIssueSeverity severity, AuditIssueConfidence confidence, java.lang.String background, java.lang.String remediationBackground, AuditIssueSeverity typicalSeverity, java.util.List<MarkedHttpRequestResponse> requestResponses)
This method can be used to create a default implementation of an audit issue for a URL.- Parameters:
name- The name of the issue type.detail- The detailed information about the issue.remediation- The detailed information about the remediation for the issue.baseUrl- The base URL for which the issue is generated.severity- TheAuditIssueSeveritylevel.confidence- TheAuditIssueConfidencelevel.background- The background description for the type of issue.remediationBackground- The background description of the remediation for this type of issue.typicalSeverity- The typicalAuditIssueSeveritylevel.requestResponses- The list ofHttpRequestResponseobjects on the basis of which the issue is generated.- Returns:
- The audit issue for the URL.
-
name
java.lang.String name()
This method returns the name of this issue type.- Returns:
- The name of this issue type (e.g. "SQL injection").
-
detail
java.lang.String detail()
This method returns detailed information about this specific instance of the issue.- Returns:
- Detailed information about this specific instance of the issue,
or
nullif none applies. A limited set of HTML tags may be used.
-
remediation
java.lang.String remediation()
This method returns detailed information about the remediation for this specific instance of the issue.- Returns:
- Detailed information about the remediation for this specific
instance of the issue, or
nullif none applies. A limited set of HTML tags may be used.
-
httpService
HttpService httpService()
This method returns the HTTP service for which the issue was generated.- Returns:
- The HTTP service for which the issue was generated.
-
baseUrl
java.lang.String baseUrl()
This method returns the base URL for which this issue was generated.- Returns:
- The base URL for which this issue was generated.
-
severity
AuditIssueSeverity severity()
This method returns the issue severity level.- Returns:
- The
AuditIssueSeveritylevel.
-
confidence
AuditIssueConfidence confidence()
This method returns the issue confidence level.- Returns:
- The
AuditIssueConfidencelevel.
-
requestResponses
java.util.List<MarkedHttpRequestResponse> requestResponses()
This method returns the HTTP request/response messages that caused the issue to be generated.- Returns:
- The list of
MarkedHttpRequestResponseobjects on the basis of which the issue was generated.
-
definition
AuditIssueDefinition definition()
This method returns the definition for this issue.- Returns:
- The
AuditIssueDefinitionfor this issue.
-
-