Class CertificateInformation

java.lang.Object
co.elastic.clients.elasticsearch.ssl.certificates.CertificateInformation
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class CertificateInformation extends Object implements JsonpSerializable
See Also:
  • Field Details

  • Method Details

    • of

    • alias

      @Nullable public final String alias()
      If the path refers to a container file (a jks keystore, or a PKCS#12 file), it is the alias of the certificate. Otherwise, it is null.

      API name: alias

    • expiry

      public final DateTime expiry()
      Required - The ISO formatted date of the certificate's expiry (not-after) date.

      API name: expiry

    • format

      public final String format()
      Required - The format of the file. Valid values include jks, PKCS12, and PEM.

      API name: format

    • hasPrivateKey

      public final boolean hasPrivateKey()
      Required - Indicates whether Elasticsearch has access to the private key for this certificate.

      API name: has_private_key

    • issuer

      @Nullable public final String issuer()
      The Distinguished Name of the certificate's issuer.

      API name: issuer

    • path

      public final String path()
      Required - The path to the certificate, as configured in the elasticsearch.yml file.

      API name: path

    • serialNumber

      public final String serialNumber()
      Required - The hexadecimal representation of the certificate's serial number.

      API name: serial_number

    • subjectDn

      public final String subjectDn()
      Required - The Distinguished Name of the certificate's subject.

      API name: subject_dn

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupCertificateInformationDeserializer

      protected static void setupCertificateInformationDeserializer(ObjectDeserializer<CertificateInformation.Builder> op)