public static class Vulnerability.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Vulnerability |
build() |
Vulnerability.Builder |
copy(Vulnerability model) |
Vulnerability.Builder |
cvssV2Score(Float cvssV2Score)
Common Vulnerability Scoring System (CVSS) Version 2.
|
Vulnerability.Builder |
cvssV3Score(Float cvssV3Score)
Common Vulnerability Scoring System (CVSS) Version 3.
|
Vulnerability.Builder |
id(String id)
Unique vulnerability identifier, e.g.
|
Vulnerability.Builder |
isFalsePositive(Boolean isFalsePositive)
Indicates if the vulnerability is a false positive according to the usage data.
|
Vulnerability.Builder |
isIgnored(Boolean isIgnored)
Indicates if the vulnerability was ignored according to the audit configuration.
|
Vulnerability.Builder |
severity(VulnerabilitySeverity severity)
ADM qualitative severity score.
|
Vulnerability.Builder |
source(String source)
Source that published the vulnerability
|
public Vulnerability.Builder id(String id)
Unique vulnerability identifier, e.g. CVE-1999-0067.
id
- the value to setpublic Vulnerability.Builder source(String source)
Source that published the vulnerability
source
- the value to setpublic Vulnerability.Builder cvssV2Score(Float cvssV2Score)
Common Vulnerability Scoring System (CVSS) Version 2.
cvssV2Score
- the value to setpublic Vulnerability.Builder cvssV3Score(Float cvssV3Score)
Common Vulnerability Scoring System (CVSS) Version 3.
cvssV3Score
- the value to setpublic Vulnerability.Builder severity(VulnerabilitySeverity severity)
ADM qualitative severity score. Can be either NONE, LOW, MEDIUM, HIGH or CRITICAL.
severity
- the value to setpublic Vulnerability.Builder isIgnored(Boolean isIgnored)
Indicates if the vulnerability was ignored according to the audit configuration.
isIgnored
- the value to setpublic Vulnerability.Builder isFalsePositive(Boolean isFalsePositive)
Indicates if the vulnerability is a false positive according to the usage data. If no
usage data was provided or the service cannot infer usage of the vulnerable code then
this property is null
.
isFalsePositive
- the value to setpublic Vulnerability build()
public Vulnerability.Builder copy(Vulnerability model)
Copyright © 2016–2024. All rights reserved.