Class Vulnerability
java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.Vulnerability
- All Implemented Interfaces:
Serializable
A GitHub Security Advisory Identifier.
type SecurityAdvisoryIdentifier
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classAn individual vulnerability within an Advisory. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version UID. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe first version containing a fix for the vulnerability.A description of the vulnerable package.The severity of the vulnerability within this package.When the vulnerability was last updated.A string that describes the vulnerable package versions.inthashCode()(package private) voidsetFirstPatchedVersion(PackageVersion packageVersion) Internal setter for deserialization.(package private) voidsetPackage(Package pkg) Internal setter for deserialization.(package private) voidsetSeverity(Severity severity) Internal setter for deserialization.(package private) voidsetUpdatedAt(ZonedDateTime updatedAt) Internal setter for deserialization.(package private) voidsetVulnerableVersionRange(String range) Internal setter for deserialization.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
node
-
-
Constructor Details
-
Vulnerability
public Vulnerability()
-
-
Method Details
-
getFirstPatchedVersion
The first version containing a fix for the vulnerability.- Returns:
- the first version containing a fix for the vulnerability.
-
setFirstPatchedVersion
Internal setter for deserialization.- Parameters:
packageVersion- the version.
-
getPackage
A description of the vulnerable package.- Returns:
- a description of the vulnerable package.
-
setPackage
Internal setter for deserialization.- Parameters:
pkg- the package
-
getSeverity
The severity of the vulnerability within this package.- Returns:
- the severity of the vulnerability within this package.
-
setSeverity
Internal setter for deserialization.- Parameters:
severity- severity
-
getUpdatedAt
When the vulnerability was last updated.- Returns:
- when the vulnerability was last updated.
-
setUpdatedAt
Internal setter for deserialization.- Parameters:
updatedAt- updated date time
-
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.
-
setVulnerableVersionRange
Internal setter for deserialization.- Parameters:
range- the range
-
toString
-
equals
-
hashCode
public int hashCode()
-