Class HttpsCertificate

java.lang.Object
io.github.coho04.githubapi.bases.GHBase
io.github.coho04.githubapi.entities.HttpsCertificate
All Implemented Interfaces:
HttpRequestInterface, JSONHelper

public class HttpsCertificate extends GHBase
This class represents an HTTPS certificate. It provides methods for fetching data about the certificate such as its state, description, domains, and expiration date.
  • 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

      public String getState()
      Returns the state of the certificate.
      Returns:
      the state of the certificate
    • getDescription

      public String getDescription()
      Returns the description of the certificate.
      Returns:
      the description of the certificate
    • getDomains

      public List<String> getDomains()
      Returns the domains of the certificate.
      Returns:
      the domains of the certificate
    • getExpiresAt

      public OffsetDateTime getExpiresAt()
      Returns the expiration date of the certificate.
      Returns:
      the expiration date of the certificate