Added baseCpe to consumed JSON messages.
@@ -26,6 +26,7 @@ import java.util.*;
public class Vulnerability {
private String id;
private List<String> purls;
+ private String baseCpe;
private List<String> firstPatchedPurls;
private Double scoreCVSS2;
private Double scoreCVSS3;
@@ -67,6 +68,9 @@ public class Vulnerability {
return purls;
}
+ @JsonProperty("base_cpe")
+ public String getBaseCpe() { return baseCpe; }
+
@JsonProperty("first_patched_purls")
public List<String> getFirstPatchedPurls() {
return firstPatchedPurls;
@@ -145,6 +149,9 @@ public class Vulnerability {
this.purls = purls;
}
+ @JsonProperty("base_cpe")
+ public void setBaseCpe(String baseCpe) { this.baseCpe = baseCpe; }
+
@JsonProperty("first_patched_purls")
public void setFirstPatchedPurls(List<String> firstPatchedPurls) {
this.firstPatchedPurls = firstPatchedPurls;
@@ -226,6 +233,7 @@ public class Vulnerability {
return "Vulnerability {" +
"id='" + id + '\'' +
", purls=" + purls +
+ ", baseCpe=" + baseCpe +
", firstPatchedPurls=" + firstPatchedPurls +
", scoreCVSS2=" + scoreCVSS2 +
", scoreCVSS3=" + scoreCVSS3 +
@@ -247,6 +255,7 @@ public class Vulnerability {
Vulnerability that = (Vulnerability) o;
return id.equals(that.id) &&
Objects.equals(purls, that.purls) &&
+ Objects.equals(baseCpe, that.baseCpe) &&
Objects.equals(scoreCVSS2, that.scoreCVSS2) &&
Objects.equals(scoreCVSS3, that.scoreCVSS3) &&
severity == that.severity &&
