Class CveItem
java.lang.Object
io.github.jeremylong.openvulnerability.client.nvd.CveItem
- All Implemented Interfaces:
Serializable
Represents a CVE item from the NVD API containing vulnerability details.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable LocalDateprivate @Nullable LocalDateprivate @Nullable Stringprivate @Nullable Stringprivate List<LangString>(Required)private @Nullable Stringprivate @Nullable Stringprivate @Nullable Stringprivate String(Required)private ZonedDateTime(Required)private @Nullable MetricsMetric scores for a vulnerability as found on NVD.private ZonedDateTime(Required)(Required)private static final longSerialization version UID.private @Nullable Stringprivate @Nullable List<VendorComment>private @Nullable String -
Constructor Summary
ConstructorsConstructorDescriptionCveItem(String id, @Nullable String sourceIdentifier, @Nullable String vulnStatus, ZonedDateTime published, ZonedDateTime lastModified, @Nullable String evaluatorComment, @Nullable String evaluatorSolution, @Nullable String evaluatorImpact, @Nullable LocalDate cisaExploitAdd, @Nullable LocalDate cisaActionDue, @Nullable String cisaRequiredAction, @Nullable String cisaVulnerabilityName, @Nullable List<CveTag> cveTags, List<LangString> descriptions, List<Reference> references, @Nullable Metrics metrics, @Nullable List<Weakness> weaknesses, @Nullable List<Config> configurations, @Nullable List<VendorComment> vendorComments) Full constructor for CveItem.CveItem(String id, ZonedDateTime published, ZonedDateTime lastModified, List<LangString> descriptions, List<Reference> references) Constructor taking only the required set of JSON properties as the minimal constructor for a CveItem. -
Method Summary
Modifier and TypeMethodDescriptionboolean@Nullable LocalDate@Nullable LocalDate@Nullable String@Nullable String(Required)@Nullable String@Nullable String@Nullable StringgetId()@Nullable MetricsMetric scores for a vulnerability as found on NVD.(Required)@Nullable String@Nullable List<VendorComment>@Nullable StringinthashCode()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
id
(Required) -
sourceIdentifier
-
vulnStatus
-
published
(Required) -
lastModified
(Required) -
evaluatorComment
-
evaluatorSolution
-
evaluatorImpact
-
cisaExploitAdd
-
cisaActionDue
-
cisaRequiredAction
-
cisaVulnerabilityName
-
cveTags
-
descriptions
(Required) -
references
(Required) -
metrics
@JsonPropertyDescription("Metric scores for a vulnerability as found on NVD.") private @Nullable Metrics metricsMetric scores for a vulnerability as found on NVD. -
weaknesses
-
configurations
-
vendorComments
-
-
Constructor Details
-
CveItem
public CveItem(String id, ZonedDateTime published, ZonedDateTime lastModified, List<LangString> descriptions, List<Reference> references) Constructor taking only the required set of JSON properties as the minimal constructor for a CveItem.- Parameters:
id- The id of the cveItem data from the NVD API (required JSON property)published- The published of the cveItem data from the NVD API (required JSON property)lastModified- The lastModified of the cveItem data from the NVD API (required JSON property)descriptions- The descriptions of the cveItem data from the NVD API (required JSON property)references- The references of the cveItem data from the NVD API (required JSON property)
-
CveItem
public CveItem(String id, @Nullable String sourceIdentifier, @Nullable String vulnStatus, ZonedDateTime published, ZonedDateTime lastModified, @Nullable String evaluatorComment, @Nullable String evaluatorSolution, @Nullable String evaluatorImpact, @Nullable LocalDate cisaExploitAdd, @Nullable LocalDate cisaActionDue, @Nullable String cisaRequiredAction, @Nullable String cisaVulnerabilityName, @Nullable List<CveTag> cveTags, List<LangString> descriptions, List<Reference> references, @Nullable Metrics metrics, @Nullable List<Weakness> weaknesses, @Nullable List<Config> configurations, @Nullable List<VendorComment> vendorComments) Full constructor for CveItem.- Parameters:
id- the CVE identifiersourceIdentifier- the source identifiervulnStatus- the vulnerability statuspublished- the publication datelastModified- the last modified dateevaluatorComment- evaluator commentevaluatorSolution- evaluator solutionevaluatorImpact- evaluator impact assessmentcisaExploitAdd- date added to CISA KEV catalogcisaActionDue- CISA required action due datecisaRequiredAction- CISA required actioncisaVulnerabilityName- CISA vulnerability namecveTags- CVE tagsdescriptions- vulnerability descriptionsreferences- vulnerability referencesmetrics- CVSS metricsweaknesses- CWE weaknessesconfigurations- affected configurationsvendorComments- vendor comments
-
-
Method Details
-
getId
- Returns:
- id
-
getSourceIdentifier
- Returns:
- sourceIdentifier
-
getVulnStatus
- Returns:
- vulnStatus
-
getPublished
- Returns:
- published
-
getLastModified
- Returns:
- lastModified
-
getEvaluatorComment
- Returns:
- evaluatorComment
-
getEvaluatorSolution
- Returns:
- evaluatorSolution
-
getEvaluatorImpact
- Returns:
- evaluatorImpact
-
getCisaExploitAdd
- Returns:
- cisaExploitAdd
-
getCisaActionDue
- Returns:
- cisaActionDue
-
getCisaRequiredAction
- Returns:
- cisaRequiredAction
-
getCisaVulnerabilityName
- Returns:
- cisaVulnerabilityName
-
getCveTags
- Returns:
- cveTags
-
getDescriptions
(Required)- Returns:
- descriptions
-
getReferences
(Required)- Returns:
- references
-
getMetrics
Metric scores for a vulnerability as found on NVD.- Returns:
- metrics
-
getWeaknesses
- Returns:
- weaknesses
-
getConfigurations
- Returns:
- configurations
-
getVendorComments
- Returns:
- vendorComments
-
toString
-
equals
-
hashCode
public int hashCode()
-