| Modifier and Type | Method and Description |
|---|---|
CertificateBuilder |
CertificateBuilder.addCrlDistributionPoint(URI uri)
Add a URI distribution point for a certificate revocation list.
|
CertificateBuilder |
CertificateBuilder.addCrlDistributionPoint(URI uri,
X500Principal issuer)
Add a URI distribution point for a certificate revocation list.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsage(CertificateBuilder.ExtendedKeyUsage keyUsage)
Add the given
CertificateBuilder.ExtendedKeyUsage to the list of extended key usages. |
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsage(String oid)
Add the given OID to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageClientAuth()
Add client-authentication to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageCodeSigning()
Add code signing to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageEmailProtection()
Add email protection to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageKerberosClientAuth()
Add Kerberos client authentication to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageMicrosoftSmartcardLogin()
Add Microsoft smartcard login to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageOcspSigning()
Add OCSP signing to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageServerAuth()
Add server-authentication to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtendedKeyUsageTimeStamping()
Add time-stamping to the list of extended key usages.
|
CertificateBuilder |
CertificateBuilder.addExtensionAsciiString(String identifierOID,
boolean critical,
String value)
Add a custom DER-encoded ASN.1 IA5String (an ASCII string) extension to the certificate, with the given OID,
criticality, and string value.
|
CertificateBuilder |
CertificateBuilder.addExtensionOctetString(String identifierOID,
boolean critical,
byte[] contents)
Add a custom extension to the certificate, with the given OID, criticality flag, and DER-encoded contents.
|
CertificateBuilder |
CertificateBuilder.addExtensionUtf8String(String identifierOID,
boolean critical,
String value)
Add a custom DER-encoded ASN.1 UTF-8 string extension to the certificate, with the given OID, criticality,
and string value.
|
CertificateBuilder |
CertificateBuilder.addSanDirectoryName(String dirName)
Add a Directory Name to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanDnsName(String dns)
Add a DNS name to the Subject Alternate Names.
|
CertificateBuilder |
CertificateBuilder.addSanIpAddress(InetAddress ipAddress)
Add an IP address to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanIpAddress(String ipAddress)
Add an IP address to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanOtherName(String typeOid,
byte[] encodedValue)
Add an Other Name to the Subject Alternative Names, of the given OID type, and with the given encoded value.
|
CertificateBuilder |
CertificateBuilder.addSanRegisteredId(String oid)
Add a registeredID to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanRfc822Name(String name)
Add an RFC 822 name to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanUriName(String uri)
Add a URI name to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.addSanUriName(URI uri)
Add a URI name to the Subject Alternative Names.
|
CertificateBuilder |
CertificateBuilder.algorithm(CertificateBuilder.Algorithm algorithm)
Set the key algorithm to use.
|
CertificateBuilder |
CertificateBuilder.copy()
Produce a copy of the current state in this certificate builder.
|
CertificateBuilder |
CertificateBuilder.ecp256()
Make this certificate builder use the NIST EC-P 256 elliptic curve key algorithm.
|
CertificateBuilder |
CertificateBuilder.notAfter(Instant instant)
Set the not-after field of the certificate.
|
CertificateBuilder |
CertificateBuilder.notBefore(Instant instant)
Set the not-before field of the certificate.
|
CertificateBuilder |
CertificateBuilder.publicKey(PublicKey key)
Instruct the certificate builder to not generate its own key pair, but to instead create a certificate that
uses the given public key.
|
CertificateBuilder |
CertificateBuilder.rsa2048()
Make this certificate builder use the 2048-bit RSA encryption and signing
algorithm.
|
CertificateBuilder |
CertificateBuilder.secureRandom(SecureRandom secureRandom)
Set the
SecureRandom instance to use when generating keys. |
CertificateBuilder |
CertificateBuilder.serial(BigInteger serial)
Set the specific serial number to use in the certificate.
|
CertificateBuilder |
CertificateBuilder.setIsCertificateAuthority(boolean isCA)
Set the certificate authority field.
|
CertificateBuilder |
CertificateBuilder.setKeyUsage(boolean critical,
CertificateBuilder.KeyUsage... keyUsages)
The key usage specify the intended usages for which the certificate has been issued.
|
CertificateBuilder |
CertificateBuilder.setPathLengthConstraint(OptionalInt pathLengthConstraint)
Certificate Authority certificates may impose a limit to the length of the verified certificate path they permit.
|
CertificateBuilder |
CertificateBuilder.subject(String fqdn)
Set the fully-qualified domain name (an X.500 name) as the subject of the certificate.
|
CertificateBuilder |
CertificateBuilder.subject(X500Principal name)
Set the subject name of the certificate to the given
X500Principal. |
Copyright © 2008–2024 The Netty Project. All rights reserved.