Class SecurityAdvisory
java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.SecurityAdvisory
- All Implemented Interfaces:
Serializable
Represents a GitHub Security Advisory.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate CVSSSeveritiesprivate CWEsprivate intprivate Stringprivate Epssprivate Stringprivate Stringprivate List<Identifier>private Stringprivate Stringprivate Stringprivate ZonedDateTimeprivate static final longSerialization version UID.private Severityprivate Stringprivate ZonedDateTimeprivate Vulnerabilitiesprivate ZonedDateTime -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe classification of the advisory.The CVSS associated with this advisory.getCwes()Returns CWE Page associated with this Advisory.intIdentifies the primary key from the database.This is a long plaintext description of the advisorygetEpss()Returns EPSS score for security advisoriesThe GitHub Security Advisory IDgetId()The id of the advisory.A list of identifiers for this advisory.The permalink for the advisory's dependabot alerts page.The organization that originated the advisory.The permalink for the advisory.When the advisory was published.A list of references for this advisory.The severity of the advisory.A short plaintext summary of the advisory.When the advisory was last updated.The vulnerable packages associated with the advisory.When the advisory was withdrawn, if it has been withdrawn.inthashCode()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version UID.- See Also:
-
databaseId
private int databaseId -
description
-
ghsaId
-
id
-
identifiers
-
epss
-
notificationsPermalink
-
origin
-
permalink
-
publishedAt
-
references
-
severity
-
summary
-
updatedAt
-
withdrawnAt
-
classification
-
cvssSeverities
-
cwes
-
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
This is a long plaintext description of the advisory- Returns:
- the description.
-
getGhsaId
The GitHub Security Advisory ID- Returns:
- the GitHub Security Advisory ID.
-
getId
The id of the advisory.- Returns:
- the id.
-
getIdentifiers
A list of identifiers for this advisory.- Returns:
- a list of identifiers for this advisory.
-
getNotificationsPermalink
The permalink for the advisory's dependabot alerts page.- Returns:
- the permalink for the advisory's dependabot alerts page.
-
getOrigin
The organization that originated the advisory.- Returns:
- the organization that originated the advisory.
-
getPermalink
The permalink for the advisory.- Returns:
- the permalink for the advisory.
-
getPublishedAt
When the advisory was published.- Returns:
- when the advisory was published.
-
getReferences
A list of references for this advisory.- Returns:
- a list of references for this advisory.
-
getSeverity
The severity of the advisory.- Returns:
- the severity of the advisory.
-
getSummary
A short plaintext summary of the advisory.- Returns:
- a short plaintext summary of the advisory.
-
getUpdatedAt
When the advisory was last updated.- Returns:
- when the advisory was last updated
-
getWithdrawnAt
When the advisory was withdrawn, if it has been withdrawn.- Returns:
- when the advisory was withdrawn, if it has been withdrawn
-
getClassification
The classification of the advisory. type, e.g. GENERAL, MALWARE.- Returns:
- the classification of the advisory.
-
getCvssSeverities
The CVSS associated with this advisory.- Returns:
- the CVSS associated with this advisory.
-
getCwes
Returns CWE Page associated with this Advisory.- Returns:
- CWEs associated with this Advisory.
-
getEpss
Returns EPSS score for security advisories- Returns:
- EPSS score for security advisories
-
getVulnerabilities
The vulnerable packages associated with the advisory.- Returns:
- the vulnerable packages associated with the advisory.
-
toString
-
equals
-
hashCode
public int hashCode()
-