Package de.coho04.githubapi.entities
Klasse GHVulnerability
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.entities.GHVulnerability
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents a GitHub Vulnerability.
It provides methods for fetching data about the vulnerability such as its package, first patched version, vulnerable version range, and vulnerable functions.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungGHVulnerability(Github github, org.json.JSONObject jsonObject) Constructs a new GHVulnerability instance with the provided JSON object. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the first patched version of the vulnerability.Returns the package of the vulnerability.Returns the vulnerable functions of the vulnerability.Returns the vulnerable version range of the vulnerability.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
GHVulnerability
Constructs a new GHVulnerability instance with the provided JSON object.- Parameter:
jsonObject- the JSON object containing the vulnerability data
-
-
Methodendetails
-
getGhPackage
Returns the package of the vulnerability.- Gibt zurück:
- the package of the vulnerability
-
getFirstPatchedVersion
Returns the first patched version of the vulnerability.- Gibt zurück:
- the first patched version of the vulnerability
-
getVulnerableVersionRange
Returns the vulnerable version range of the vulnerability.- Gibt zurück:
- the vulnerable version range of the vulnerability
-
getVulnerableFunctions
Returns the vulnerable functions of the vulnerability.- Gibt zurück:
- the vulnerable functions of the vulnerability
-