Class SecurityAdvisory
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.ghsa.SecurityAdvisory
-
- All Implemented Interfaces:
java.io.Serializable
public class SecurityAdvisory extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SecurityAdvisory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetClassification()The classification of the advisory.CVSSgetCvss()The CVSS associated with this advisory.CWEsgetCwes()Returns CWE Page associated with this Advisory.intgetDatabaseId()Identifies the primary key from the database.java.lang.StringgetDescription()This is a long plaintext description of the advisoryjava.lang.StringgetGhsaId()The GitHub Security Advisory IDjava.lang.StringgetId()The id of the advisory.java.util.List<Identifier>getIdentifiers()A list of identifiers for this advisory.java.lang.StringgetNotificationsPermalink()The permalink for the advisory's dependabot alerts page.java.lang.StringgetOrigin()The organization that originated the advisory.java.lang.StringgetPermalink()The permalink for the advisory.java.time.ZonedDateTimegetPublishedAt()When the advisory was published.java.util.List<Reference>getReferences()A list of references for this advisory.SeveritygetSeverity()The severity of the advisory.java.lang.StringgetSummary()A short plaintext summary of the advisory.java.time.ZonedDateTimegetUpdatedAt()When the advisory was last updated.VulnerabilitiesgetVulnerabilities()The vulnerable packages associated with the advisory.java.time.ZonedDateTimegetWithdrawnAt()When the advisory was withdrawn, if it has been withdrawn.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getDatabaseId
public int getDatabaseId()
Identifies the primary key from the database.- Returns:
- the primary key from the database.
-
getDescription
public java.lang.String getDescription()
This is a long plaintext description of the advisory- Returns:
- the description.
-
getGhsaId
public java.lang.String getGhsaId()
The GitHub Security Advisory ID- Returns:
- the GitHub Security Advisory ID.
-
getId
public java.lang.String getId()
The id of the advisory.- Returns:
- the id.
-
getIdentifiers
public java.util.List<Identifier> getIdentifiers()
A list of identifiers for this advisory.- Returns:
- a list of identifiers for this advisory.
-
getNotificationsPermalink
public java.lang.String getNotificationsPermalink()
The permalink for the advisory's dependabot alerts page.- Returns:
- the permalink for the advisory's dependabot alerts page.
-
getOrigin
public java.lang.String getOrigin()
The organization that originated the advisory.- Returns:
- the organization that originated the advisory.
-
getPermalink
public java.lang.String getPermalink()
The permalink for the advisory.- Returns:
- the permalink for the advisory.
-
getPublishedAt
public java.time.ZonedDateTime getPublishedAt()
When the advisory was published.- Returns:
- when the advisory was published.
-
getReferences
public java.util.List<Reference> getReferences()
A list of references for this advisory.- Returns:
- a list of references for this advisory.
-
getSeverity
public Severity getSeverity()
The severity of the advisory.- Returns:
- the severity of the advisory.
-
getSummary
public java.lang.String getSummary()
A short plaintext summary of the advisory.- Returns:
- a short plaintext summary of the advisory.
-
getUpdatedAt
public java.time.ZonedDateTime getUpdatedAt()
When the advisory was last updated.- Returns:
- when the advisory was last updated
-
getWithdrawnAt
public java.time.ZonedDateTime getWithdrawnAt()
When the advisory was withdrawn, if it has been withdrawn.- Returns:
- when the advisory was withdrawn, if it has been withdrawn
-
getClassification
public java.lang.String getClassification()
The classification of the advisory. type, e.g. GENERAL, MALWARE.- Returns:
- the classification of the advisory.
-
getCvss
public CVSS getCvss()
The CVSS associated with this advisory.- Returns:
- the CVSS associated with this advisory.
-
getCwes
public CWEs getCwes()
Returns CWE Page associated with this Advisory.- Returns:
- CWEs associated with this Advisory.
-
getVulnerabilities
public Vulnerabilities getVulnerabilities()
The vulnerable packages associated with the advisory.- Returns:
- the vulnerable packages associated with the advisory.
-
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
-
-