Class CertificateInformation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CertificateInformation.Builder>
co.elastic.clients.elasticsearch.ssl.certificates.CertificateInformation.Builder
- All Implemented Interfaces:
WithJson<CertificateInformation.Builder>
,ObjectBuilder<CertificateInformation>
- Enclosing class:
- CertificateInformation
public static class CertificateInformation.Builder
extends WithJsonObjectBuilderBase<CertificateInformation.Builder>
implements ObjectBuilder<CertificateInformation>
Builder for
CertificateInformation
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIf the path refers to a container file (a jks keystore, or a PKCS#12 file), it is the alias of the certificate.build()
Builds aCertificateInformation
.Required - The ISO formatted date of the certificate's expiry (not-after) date.Required - The format of the file.hasPrivateKey
(boolean value) Required - Indicates whether Elasticsearch has access to the private key for this certificate.The Distinguished Name of the certificate's issuer.Required - The path to the certificate, as configured in theelasticsearch.yml
file.protected CertificateInformation.Builder
self()
serialNumber
(String value) Required - The hexadecimal representation of the certificate's serial number.Required - The Distinguished Name of the certificate's subject.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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
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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CertificateInformation.Builder>
-
build
Builds aCertificateInformation
.- Specified by:
build
in interfaceObjectBuilder<CertificateInformation>
- Throws:
NullPointerException
- if some of the required fields are null.
-