Class VulnerabilityResolution
-
- All Implemented Interfaces:
public final class VulnerabilityResolutionDefines the resolution of an Vulnerability. This can be used to silence false positives, or vulnerabilities that have been identified as not being relevant.
-
-
Constructor Summary
Constructors Constructor Description VulnerabilityResolution(String id, VulnerabilityResolutionReason reason, String comment)
-
Method Summary
Modifier and Type Method Description final StringgetId()A regular expression to match the id, e.g. final VulnerabilityResolutionReasongetReason()The reason why the vulnerability is resolved. final StringgetComment()A comment to further explain why the reason is applicable here. final Booleanmatches(Vulnerability vulnerability)True if id matches the id of vulnerability. -
-
Constructor Detail
-
VulnerabilityResolution
VulnerabilityResolution(String id, VulnerabilityResolutionReason reason, String comment)
-
-
Method Detail
-
getId
final String getId()
A regular expression to match the id, e.g. a CVE, of the vulnerability to resolve. Will be converted to a Regex using RegexOption.DOT_MATCHES_ALL.
-
getReason
final VulnerabilityResolutionReason getReason()
The reason why the vulnerability is resolved.
-
getComment
final String getComment()
A comment to further explain why the reason is applicable here.
-
matches
final Boolean matches(Vulnerability vulnerability)
True if id matches the id of vulnerability.
-
-
-
-