Class Vulnerability
- java.lang.Object
-
- io.github.jeremylong.openvulnerability.client.ghsa.Vulnerability
-
- All Implemented Interfaces:
java.io.Serializable
public class Vulnerability extends java.lang.Object implements java.io.SerializableA GitHub Security Advisory Identifier.type SecurityAdvisoryIdentifier
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Vulnerability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)PackageVersiongetFirstPatchedVersion()The first version containing a fix for the vulnerability.PackagegetPackage()A description of the vulnerable package.SeveritygetSeverity()The severity of the vulnerability within this package.java.time.ZonedDateTimegetUpdatedAt()When the vulnerability was last updated.java.lang.StringgetVulnerableVersionRange()A string that describes the vulnerable package versions.inthashCode()java.lang.StringtoString()
-
-
-
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:
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
-
-