Class Vulnerability

  • All Implemented Interfaces:
    java.io.Serializable

    public class Vulnerability
    extends java.lang.Object
    implements java.io.Serializable
    A GitHub Security Advisory Identifier.
     type SecurityAdvisoryIdentifier
     
    See Also:
    Serialized Form
    • Constructor Detail

      • Vulnerability

        public Vulnerability()
    • Method Detail

      • getFirstPatchedVersion

        public PackageVersion getFirstPatchedVersion()
        The first version containing a fix for the vulnerability.
        Returns:
        the first version containing a fix for the vulnerability.
      • getPackage

        public Package getPackage()
        A description of the vulnerable package.
        Returns:
        a description of the vulnerable package.
      • getSeverity

        public Severity getSeverity()
        The severity of the vulnerability within this package.
        Returns:
        the severity of the vulnerability within this package.
      • getUpdatedAt

        public java.time.ZonedDateTime getUpdatedAt()
        When the vulnerability was last updated.
        Returns:
        when the vulnerability was last updated.
      • getVulnerableVersionRange

        public java.lang.String getVulnerableVersionRange()
        A string that describes the vulnerable package versions. This string follows a basic syntax with a few forms.
           `= 0.2.0` denotes a single vulnerable version.
           `>= 1.0.8` denotes a version range up to and including the specified version
           `< 0.1.11` denotes a version range up to, but excluding, the specified version
           `>= 4.3.0, < 4.3.5` denotes a version range with a known minimum and maximum version.
           `>= 0.0.1` denotes a version range with a known minimum, but no known maximum
         
        Returns:
        the range.
      • 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