public class DetectedVulnerability extends Object
| Constructor and Description |
|---|
DetectedVulnerability(String groupId,
String artifactId,
DetectedVulnerabilitySeverity severity,
String fixVersion,
String description)
Constructs a
DetectedVulnerability with the given groupId, artifactId, severity,
fixVersion, and description. |
| Modifier and Type | Method and Description |
|---|---|
String |
artifactId()
Returns the artifact identifier of this detected vulnerability.
|
String |
description()
Returns the description of this detected vulnerability.
|
boolean |
equals(Object o) |
String |
fixVersion()
Returns the fix version of this detected vulnerability.
|
String |
groupId()
Returns the group identifier of this detected vulnerability.
|
int |
hashCode() |
DetectedVulnerabilitySeverity |
severity()
Returns the severity of this detected vulnerability.
|
String |
toString() |
public DetectedVulnerability(String groupId, String artifactId, DetectedVulnerabilitySeverity severity, String fixVersion, String description)
DetectedVulnerability with the given groupId, artifactId, severity,
fixVersion, and description.groupId - The group ID of the artifact.artifactId - The artifact ID of the artifact.severity - The severity of the vulnerability, represented by the DetectedVulnerabilitySeverity
enum.fixVersion - The recommended version to fix the vulnerability.description - A description of the vulnerability, providing details about its nature and impact.public String groupId()
public String artifactId()
public DetectedVulnerabilitySeverity severity()
public String fixVersion()
public String description()
Copyright © 2010–2025. All rights reserved.