| 376 | } |
| 377 | |
| 378 | class CustomScanIssue implements IScanIssue |
| 379 | { |
| 380 | private IHttpService httpService; |
| 381 | private URL url; |
| 382 | private IHttpRequestResponse[] httpMessages; |
| 383 | private String name; |
| 384 | private String detail; |
| 385 | private String severity; |
| 386 | |
| 387 | /** |
| 388 | * |
| 389 | * @param httpService HTTP服务 |
| 390 | * @param url 漏洞url |
| 391 | * @param httpMessages HTTP消息 |
| 392 | * @param name 漏洞名称 |
| 393 | * @param detail 漏洞细节 |
| 394 | * @param severity 漏洞等级 |
| 395 | */ |
| 396 | public CustomScanIssue( |
| 397 | IHttpService httpService, |
| 398 | URL url, |
| 399 | IHttpRequestResponse[] httpMessages, |
| 400 | String name, |
| 401 | String detail, |
| 402 | String severity) |
| 403 | { |
| 404 | this.httpService = httpService; |
| 405 | this.url = url; |
| 406 | this.httpMessages = httpMessages; |
| 407 | this.name = name; |
| 408 | this.detail = detail; |
| 409 | this.severity = severity; |
| 410 | } |
| 411 | |
| 412 | public URL getUrl() |
| 413 | { |
| 414 | return url; |
| 415 | } |
| 416 | |
| 417 | public String getIssueName() |
| 418 | { |
| 419 | return name; |
| 420 | } |
| 421 | |
| 422 | public int getIssueType() |
| 423 | { |
| 424 | return 0; |
| 425 | } |
| 426 | |
| 427 | public String getSeverity() |
| 428 | { |
| 429 | return severity; |
| 430 | } |
| 431 | |
| 432 | public String getConfidence() |
| 433 | { |
| 434 | return "Certain"; |
| 435 | } |
nothing calls this directly
no outgoing calls
no test coverage detected