Class SecurityAdvisory

java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.SecurityAdvisory
All Implemented Interfaces:
Serializable

public class SecurityAdvisory extends Object implements Serializable
Represents a GitHub Security Advisory.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • databaseId

      private int databaseId
    • description

      private String description
    • ghsaId

      private String ghsaId
    • id

      private String id
    • identifiers

      private List<Identifier> identifiers
    • epss

      private Epss epss
    • origin

      private String origin
    • publishedAt

      private ZonedDateTime publishedAt
    • references

      private List<Reference> references
    • severity

      private Severity severity
    • summary

      private String summary
    • updatedAt

      private ZonedDateTime updatedAt
    • withdrawnAt

      private ZonedDateTime withdrawnAt
    • classification

      private String classification
    • cvssSeverities

      private CVSSSeverities cvssSeverities
    • cwes

      private CWEs cwes
    • vulnerabilities

      private Vulnerabilities vulnerabilities
  • Constructor Details

    • SecurityAdvisory

      public SecurityAdvisory()
  • Method Details

    • getDatabaseId

      public int getDatabaseId()
      Identifies the primary key from the database.
      Returns:
      the primary key from the database.
    • getDescription

      public String getDescription()
      This is a long plaintext description of the advisory
      Returns:
      the description.
    • getGhsaId

      public String getGhsaId()
      The GitHub Security Advisory ID
      Returns:
      the GitHub Security Advisory ID.
    • getId

      public String getId()
      The id of the advisory.
      Returns:
      the id.
    • getIdentifiers

      public List<Identifier> getIdentifiers()
      A list of identifiers for this advisory.
      Returns:
      a list of identifiers for this advisory.
    • getNotificationsPermalink

      public String getNotificationsPermalink()
      The permalink for the advisory's dependabot alerts page.
      Returns:
      the permalink for the advisory's dependabot alerts page.
    • getOrigin

      public String getOrigin()
      The organization that originated the advisory.
      Returns:
      the organization that originated the advisory.
    • getPermalink

      public String getPermalink()
      The permalink for the advisory.
      Returns:
      the permalink for the advisory.
    • getPublishedAt

      public ZonedDateTime getPublishedAt()
      When the advisory was published.
      Returns:
      when the advisory was published.
    • getReferences

      public 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 String getSummary()
      A short plaintext summary of the advisory.
      Returns:
      a short plaintext summary of the advisory.
    • getUpdatedAt

      public ZonedDateTime getUpdatedAt()
      When the advisory was last updated.
      Returns:
      when the advisory was last updated
    • getWithdrawnAt

      public 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 String getClassification()
      The classification of the advisory. type, e.g. GENERAL, MALWARE.
      Returns:
      the classification of the advisory.
    • getCvssSeverities

      public CVSSSeverities getCvssSeverities()
      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.
    • getEpss

      public Epss getEpss()
      Returns EPSS score for security advisories
      Returns:
      EPSS score for security advisories
    • getVulnerabilities

      public Vulnerabilities getVulnerabilities()
      The vulnerable packages associated with the advisory.
      Returns:
      the vulnerable packages associated with the advisory.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object