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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CertificateInformation>
Json deserializer forCertificateInformation
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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.final DateTime
expiry()
Required - The ISO formatted date of the certificate's expiry (not-after) date.final String
format()
Required - The format of the file.final boolean
Required - Indicates whether Elasticsearch has access to the private key for this certificate.final String
issuer()
The Distinguished Name of the certificate's issuer.static CertificateInformation
final String
path()
Required - The path to the certificate, as configured in theelasticsearch.yml
file.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final String
Required - The hexadecimal representation of the certificate's serial number.protected static void
final String
Required - The Distinguished Name of the certificate's subject.toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCertificateInformation
-
-
Method Details
-
of
public static CertificateInformation of(Function<CertificateInformation.Builder, ObjectBuilder<CertificateInformation>> fn) -
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
Required - The ISO formatted date of the certificate's expiry (not-after) date.API name:
expiry
-
format
Required - The format of the file. Valid values includejks
,PKCS12
, andPEM
.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
The Distinguished Name of the certificate's issuer.API name:
issuer
-
path
Required - The path to the certificate, as configured in theelasticsearch.yml
file.API name:
path
-
serialNumber
Required - The hexadecimal representation of the certificate's serial number.API name:
serial_number
-
subjectDn
Required - The Distinguished Name of the certificate's subject.API name:
subject_dn
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCertificateInformationDeserializer
protected static void setupCertificateInformationDeserializer(ObjectDeserializer<CertificateInformation.Builder> op)
-