Uses of Class
io.netty.pkitesting.CertificateBuilder
Packages that use CertificateBuilder
-
Uses of CertificateBuilder in io.netty.pkitesting
Methods in io.netty.pkitesting that return CertificateBuilderModifier and TypeMethodDescriptionCertificateBuilder.addCrlDistributionPoint(URI uri) Add a URI distribution point for a certificate revocation list.CertificateBuilder.addCrlDistributionPoint(URI uri, X500Principal issuer) Add a URI distribution point for a certificate revocation list.CertificateBuilder.addExtendedKeyUsage(CertificateBuilder.ExtendedKeyUsage keyUsage) Add the givenCertificateBuilder.ExtendedKeyUsageto the list of extended key usages.CertificateBuilder.addExtendedKeyUsage(String oid) Add the given OID to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageClientAuth()Add client-authentication to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageCodeSigning()Add code signing to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageEmailProtection()Add email protection to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageKerberosClientAuth()Add Kerberos client authentication to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageMicrosoftSmartcardLogin()Add Microsoft smartcard login to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageOcspSigning()Add OCSP signing to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageServerAuth()Add server-authentication to the list of extended key usages.CertificateBuilder.addExtendedKeyUsageTimeStamping()Add time-stamping to the list of extended key usages.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.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.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.addSanDirectoryName(String dirName) Add a Directory Name to the Subject Alternative Names.CertificateBuilder.addSanDnsName(String dns) Add a DNS name to the Subject Alternate Names.CertificateBuilder.addSanIpAddress(String ipAddress) Add an IP address to the Subject Alternative Names.CertificateBuilder.addSanIpAddress(InetAddress ipAddress) Add an IP address to the Subject Alternative Names.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.addSanRegisteredId(String oid) Add a registeredID to the Subject Alternative Names.CertificateBuilder.addSanRfc822Name(String name) Add an RFC 822 name to the Subject Alternative Names.CertificateBuilder.addSanUriName(String uri) Add a URI name to the Subject Alternative Names.CertificateBuilder.addSanUriName(URI uri) Add a URI name to the Subject Alternative Names.CertificateBuilder.algorithm(CertificateBuilder.Algorithm algorithm) Set the key algorithm to use.CertificateBuilder.copy()Produce a copy of the current state in this certificate builder.CertificateBuilder.ecp256()Make this certificate builder use the NIST EC-P 256 elliptic curve key algorithm.Instruct the certificate builder to not generate its own key pair, but to instead create a certificate that uses the given key pair.Set the not-after field of the certificate.Set the not-before field of the certificate.Set theProviderinstance to use when generating keys.Instruct the certificate builder to not generate its own key pair, but to instead create a certificate that uses the given public key.CertificateBuilder.rsa2048()Make this certificate builder use the 2048-bit RSA encryption and signing algorithm.CertificateBuilder.secureRandom(SecureRandom secureRandom) Set theSecureRandominstance to use when generating keys.CertificateBuilder.serial(BigInteger serial) Set the specific serial number to use in the certificate.CertificateBuilder.setIsCertificateAuthority(boolean isCA) Set the certificate authority field.CertificateBuilder.setKeyUsage(boolean critical, CertificateBuilder.KeyUsage... keyUsages) The key usage specify the intended usages for which the certificate has been issued.CertificateBuilder.setPathLengthConstraint(OptionalInt pathLengthConstraint) Certificate Authority certificates may impose a limit to the length of the verified certificate path they permit.Set the fully-qualified domain name (an X.500 name) as the subject of the certificate.CertificateBuilder.subject(X500Principal name) Set the subject name of the certificate to the givenX500Principal.