Class GHPublicKey
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.GHPublicKey
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents a GitHub Public Key.
It provides methods for fetching data about the public key such as its key id and key.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionGHPublicKey
(org.json.JSONObject jsonObject) Constructs a new GHPublicKey instance with the provided JSON object. -
Method Summary
Methods inherited from class io.github.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.github.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequest
Methods inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Constructor Details
-
GHPublicKey
public GHPublicKey(org.json.JSONObject jsonObject) Constructs a new GHPublicKey instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the public key data
-
-
Method Details
-
getKey
Returns the key of the public key.- Returns:
- the key of the public key
-
getKeyId
Returns the key id of the public key.- Returns:
- the key id of the public key
-