public static final class CreateCertificateRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateCertificateRequest |
build() |
CreateCertificateRequest.Builder |
exportablePrivateKey(Boolean exportablePrivateKey)
Specifies whether the private key of the certificate can be exported for use.
|
CreateCertificateRequest.Builder |
keySpec(String keySpec)
The type of the key.
|
CreateCertificateRequest.Builder |
subject(String subject)
The certificate subject, which is the owner of the certificate.
|
CreateCertificateRequest.Builder |
subjectAlternativeNames(Map<String,?> subjectAlternativeNames)
The subject alternative names.
|
public CreateCertificateRequest.Builder exportablePrivateKey(Boolean exportablePrivateKey)
* true: The private key of the certificate can be exported for use. This is the default value. * false: The private key of the certificate cannot be exported for use. We recommend that you set this parameter to false to protect keys with a higher security level.
public CreateCertificateRequest.Builder keySpec(String keySpec)
* RSA\_2048 * EC_P256 * EC_SM2
public CreateCertificateRequest.Builder subject(String subject)
Specify the value in the distinguished name (DN) format, as defined in [RFC 2253](https://tools.ietf.org/html/rfc2253?spm=a2c4g.11186623.2.13.265f1a1cGFCn3Q). A DN is a sequence of relative distinguished names (RDNs). RDNs are key-value pairs in the format of `attribute1=value1,attribute2=value2`. Separate multiple RDNs with commas (,). The Subject parameter consists of the following fields: * CN: required. The name of the certificate subject. * C: required. The two-character country or region code in the [ISO 3166-1](https://www.iso.org/obp/ui/#search/code/) standard. For example, CN indicates China. * O: required. The legal name of the enterprise, company, organization, or institution. * OU: required. The name of the department. * ST: optional. The name of the province, municipality, autonomous region, or special administrative region. * L: optional. The name of the city.
public CreateCertificateRequest.Builder subjectAlternativeNames(Map<String,?> subjectAlternativeNames)
A domain name list is supported. A maximum of 10 domain names are supported.
public CreateCertificateRequest build()
Copyright © 2023. All rights reserved.