public static final class SelfSignedCertificate.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
SelfSignedCertificate.Builder |
algorithm(String algorithm)
Set the key algorithm.
|
SelfSignedCertificate.Builder |
bits(int bits)
Set the key size.
|
SelfSignedCertificate |
build()
Build the certificate.
|
SelfSignedCertificate.Builder |
fqdn(String fqdn)
Set the fully-qualified domain name of the certificate that should be generated.
|
SelfSignedCertificate.Builder |
notAfter(Date notAfter)
Set the end of the certificate validity period.
|
SelfSignedCertificate.Builder |
notBefore(Date notBefore)
Set the start of the certificate validity period.
|
SelfSignedCertificate.Builder |
random(SecureRandom random)
Set the RNG to use for key generation.
|
public SelfSignedCertificate.Builder fqdn(String fqdn)
fqdn - The FQDNpublic SelfSignedCertificate.Builder random(SecureRandom random)
random - The CSPRNGpublic SelfSignedCertificate.Builder bits(int bits)
bits - The key sizepublic SelfSignedCertificate.Builder notBefore(Date notBefore)
notBefore - The start datepublic SelfSignedCertificate.Builder notAfter(Date notAfter)
notAfter - The start datepublic SelfSignedCertificate.Builder algorithm(String algorithm)
algorithm - The key algorithmpublic SelfSignedCertificate build() throws CertificateException
CertificateException - If generation failsCopyright © 2008–2024 The Netty Project. All rights reserved.