Class TLSCertificateBuilder



  • public class TLSCertificateBuilder
    extends java.lang.Object
    Creates both client and server TLS certificates
    • Constructor Summary

      Constructors 
      Constructor Description
      TLSCertificateBuilder​()
      Creates a TLSCertificateBuilder, which is used for creating certificates
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TLSCertificateKeyPair clientCert​()
      Creates a TLS client certificate key pair
      TLSCertificateKeyPair serverCert​(java.lang.String subjectAlternativeName)
      Creates a TLS server certificate key pair with the given DNS subject alternative name
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TLSCertificateBuilder

        public TLSCertificateBuilder​()
        Creates a TLSCertificateBuilder, which is used for creating certificates
    • Method Detail

      • clientCert

        public TLSCertificateKeyPair clientCert​()
        Creates a TLS client certificate key pair
        Returns:
        a TLSCertificateKeyPair
      • serverCert

        public TLSCertificateKeyPair serverCert​(java.lang.String subjectAlternativeName)
        Creates a TLS server certificate key pair with the given DNS subject alternative name
        Parameters:
        subjectAlternativeName - the DNS SAN to be encoded in the certificate
        Returns:
        a TLSCertificateKeyPair