public static class RenewCertificateDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RenewCertificateDetails |
build() |
RenewCertificateDetails.Builder |
clusterAdminPassword(String clusterAdminPassword)
Base-64 encoded password for the cluster admin user.
|
RenewCertificateDetails.Builder |
copy(RenewCertificateDetails model) |
RenewCertificateDetails.Builder |
hostCertDetails(List<HostCertDetails> hostCertDetails)
List of leaf certificates to use for services on each host.
|
RenewCertificateDetails.Builder |
rootCertificate(String rootCertificate)
Plain text certificate/s in order, separated by new line character.
|
RenewCertificateDetails.Builder |
serverKeyPassword(String serverKeyPassword)
Base-64 encoded password for CA certificate’s private key.
|
RenewCertificateDetails.Builder |
services(List<Service> services)
List of services for which certificate needs to be renewed.
|
public RenewCertificateDetails.Builder clusterAdminPassword(String clusterAdminPassword)
Base-64 encoded password for the cluster admin user.
clusterAdminPassword
- the value to setpublic RenewCertificateDetails.Builder services(List<Service> services)
List of services for which certificate needs to be renewed. If no services provided renew will happen only for default services - AMBARI,RANGER,HUE,LIVY.
services
- the value to setpublic RenewCertificateDetails.Builder rootCertificate(String rootCertificate)
Plain text certificate/s in order, separated by new line character. If not provided in request a self-signed root certificate is generated inside the cluster. In case hostCertDetails is provided, root certificate is mandatory.
rootCertificate
- the value to setpublic RenewCertificateDetails.Builder hostCertDetails(List<HostCertDetails> hostCertDetails)
List of leaf certificates to use for services on each host. If custom host certificate is provided the root certificate becomes required.
hostCertDetails
- the value to setpublic RenewCertificateDetails.Builder serverKeyPassword(String serverKeyPassword)
Base-64 encoded password for CA certificate’s private key. This value can be empty.
serverKeyPassword
- the value to setpublic RenewCertificateDetails build()
public RenewCertificateDetails.Builder copy(RenewCertificateDetails model)
Copyright © 2016–2024. All rights reserved.