Class HttpsCertificate
java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.HttpsCertificate
- All Implemented Interfaces:
HttpRequestInterface
,JSONHelper
This class represents an HTTPS certificate.
It provides methods for fetching data about the certificate such as its state, description, domains, and expiration date.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T>
-
Constructor Summary
ConstructorsConstructorDescriptionHttpsCertificate
(org.json.JSONObject jsonObject) Constructs a new HttpsCertificate instance with the provided JSON object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of the certificate.Returns the domains of the certificate.Returns the expiration date of the certificate.getState()
Returns the state of the certificate.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
-
HttpsCertificate
public HttpsCertificate(org.json.JSONObject jsonObject) Constructs a new HttpsCertificate instance with the provided JSON object.- Parameters:
jsonObject
- the JSON object containing the certificate data
-
-
Method Details
-
getState
Returns the state of the certificate.- Returns:
- the state of the certificate
-
getDescription
Returns the description of the certificate.- Returns:
- the description of the certificate
-
getDomains
Returns the domains of the certificate.- Returns:
- the domains of the certificate
-
getExpiresAt
Returns the expiration date of the certificate.- Returns:
- the expiration date of the certificate
-