Class SecurityAdvisory

  • All Implemented Interfaces:
    java.io.Serializable

    public class SecurityAdvisory
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • SecurityAdvisory

        public SecurityAdvisory()
    • 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:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object