Class CveItem
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.nvd.CveItem
-
- All Implemented Interfaces:
java.io.Serializable
@NullMarked public class CveItem extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CveItem(java.lang.String id, @Nullable java.lang.String sourceIdentifier, @Nullable java.lang.String vulnStatus, java.time.ZonedDateTime published, java.time.ZonedDateTime lastModified, @Nullable java.lang.String evaluatorComment, @Nullable java.lang.String evaluatorSolution, @Nullable java.lang.String evaluatorImpact, @Nullable java.time.LocalDate cisaExploitAdd, @Nullable java.time.LocalDate cisaActionDue, @Nullable java.lang.String cisaRequiredAction, @Nullable java.lang.String cisaVulnerabilityName, @Nullable java.util.List<CveTag> cveTags, java.util.List<LangString> descriptions, java.util.List<Reference> references, @Nullable Metrics metrics, @Nullable java.util.List<Weakness> weaknesses, @Nullable java.util.List<Config> configurations, @Nullable java.util.List<VendorComment> vendorComments)CveItem(java.lang.String id, java.time.ZonedDateTime published, java.time.ZonedDateTime lastModified, java.util.List<LangString> descriptions, java.util.List<Reference> references)Constructor taking only the required set of JSON properties as the minimal constructor for a CveItem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@Nullable java.time.LocalDategetCisaActionDue()@Nullable java.time.LocalDategetCisaExploitAdd()@Nullable java.lang.StringgetCisaRequiredAction()@Nullable java.lang.StringgetCisaVulnerabilityName()@Nullable java.util.List<Config>getConfigurations()@Nullable java.util.List<CveTag>getCveTags()java.util.List<LangString>getDescriptions()(Required)@Nullable java.lang.StringgetEvaluatorComment()@Nullable java.lang.StringgetEvaluatorImpact()@Nullable java.lang.StringgetEvaluatorSolution()java.lang.StringgetId()java.time.ZonedDateTimegetLastModified()@Nullable MetricsgetMetrics()Metric scores for a vulnerability as found on NVD.java.time.ZonedDateTimegetPublished()java.util.List<Reference>getReferences()(Required)@Nullable java.lang.StringgetSourceIdentifier()@Nullable java.util.List<VendorComment>getVendorComments()@Nullable java.lang.StringgetVulnStatus()@Nullable java.util.List<Weakness>getWeaknesses()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
CveItem
public CveItem(java.lang.String id, java.time.ZonedDateTime published, java.time.ZonedDateTime lastModified, java.util.List<LangString> descriptions, java.util.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(java.lang.String id, @Nullable java.lang.String sourceIdentifier, @Nullable java.lang.String vulnStatus, java.time.ZonedDateTime published, java.time.ZonedDateTime lastModified, @Nullable java.lang.String evaluatorComment, @Nullable java.lang.String evaluatorSolution, @Nullable java.lang.String evaluatorImpact, @Nullable java.time.LocalDate cisaExploitAdd, @Nullable java.time.LocalDate cisaActionDue, @Nullable java.lang.String cisaRequiredAction, @Nullable java.lang.String cisaVulnerabilityName, @Nullable java.util.List<CveTag> cveTags, java.util.List<LangString> descriptions, java.util.List<Reference> references, @Nullable Metrics metrics, @Nullable java.util.List<Weakness> weaknesses, @Nullable java.util.List<Config> configurations, @Nullable java.util.List<VendorComment> vendorComments)
-
-
Method Detail
-
getId
public java.lang.String getId()
- Returns:
- id
-
getSourceIdentifier
public @Nullable java.lang.String getSourceIdentifier()
- Returns:
- sourceIdentifier
-
getVulnStatus
public @Nullable java.lang.String getVulnStatus()
- Returns:
- vulnStatus
-
getPublished
public java.time.ZonedDateTime getPublished()
- Returns:
- published
-
getLastModified
public java.time.ZonedDateTime getLastModified()
- Returns:
- lastModified
-
getEvaluatorComment
public @Nullable java.lang.String getEvaluatorComment()
- Returns:
- evaluatorComment
-
getEvaluatorSolution
public @Nullable java.lang.String getEvaluatorSolution()
- Returns:
- evaluatorSolution
-
getEvaluatorImpact
public @Nullable java.lang.String getEvaluatorImpact()
- Returns:
- evaluatorImpact
-
getCisaExploitAdd
public @Nullable java.time.LocalDate getCisaExploitAdd()
- Returns:
- cisaExploitAdd
-
getCisaActionDue
public @Nullable java.time.LocalDate getCisaActionDue()
- Returns:
- cisaActionDue
-
getCisaRequiredAction
public @Nullable java.lang.String getCisaRequiredAction()
- Returns:
- cisaRequiredAction
-
getCisaVulnerabilityName
public @Nullable java.lang.String getCisaVulnerabilityName()
- Returns:
- cisaVulnerabilityName
-
getCveTags
public @Nullable java.util.List<CveTag> getCveTags()
- Returns:
- cveTags
-
getDescriptions
public java.util.List<LangString> getDescriptions()
(Required)- Returns:
- descriptions
-
getReferences
public java.util.List<Reference> getReferences()
(Required)- Returns:
- references
-
getMetrics
public @Nullable Metrics getMetrics()
Metric scores for a vulnerability as found on NVD.- Returns:
- metrics
-
getWeaknesses
public @Nullable java.util.List<Weakness> getWeaknesses()
- Returns:
- weaknesses
-
getConfigurations
public @Nullable java.util.List<Config> getConfigurations()
- Returns:
- configurations
-
getVendorComments
public @Nullable java.util.List<VendorComment> getVendorComments()
- Returns:
- vendorComments
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-