public class SelfSignedHttpsCertificateBuilder extends Object
Constructor and Description |
---|
SelfSignedHttpsCertificateBuilder(KeyPair keyPair) |
Modifier and Type | Method and Description |
---|---|
SelfSignedHttpsCertificateBuilder |
addDnsName(String dnsName) |
SelfSignedHttpsCertificateBuilder |
addIpAddress(String ipAddress) |
X509Certificate |
build() |
SelfSignedHttpsCertificateBuilder |
setCommonName(String commonName)
Set the Common Name, which should be the hostname when building an SSL/TLS certificate.
|
SelfSignedHttpsCertificateBuilder |
setValidityPeriod(Period validityPeriod) |
public SelfSignedHttpsCertificateBuilder(KeyPair keyPair)
public SelfSignedHttpsCertificateBuilder setValidityPeriod(Period validityPeriod)
public SelfSignedHttpsCertificateBuilder setCommonName(String commonName)
commonName
- the hostname to place in the Common Name field.this
SelfSignedHttpsCertificateBuilder
.public SelfSignedHttpsCertificateBuilder addDnsName(String dnsName)
public SelfSignedHttpsCertificateBuilder addIpAddress(String ipAddress)
public X509Certificate build() throws Exception
Exception
Copyright © 2020. All rights reserved.