Class SslContextFactory


  • public class SslContextFactory
    extends Object
    Class for setting up TLS connection.
    Author:
    michal.polkorab
    • Constructor Detail

      • SslContextFactory

        public SslContextFactory​(TlsConfiguration tlsConfig)
        Sets the TlsConfiguration.
        Parameters:
        tlsConfig - TLS configuration object, contains keystore locations + keystore types
    • Method Detail

      • isCustomTrustManagerEnabled

        public boolean isCustomTrustManagerEnabled()
      • setSwitchCertificate

        public static void setSwitchCertificate​(X509Certificate certificate)
      • setIsCustomTrustManagerEnabled

        public static void setIsCustomTrustManagerEnabled​(boolean customTrustManagerEnabled)
      • getServerContext

        public SSLContext getServerContext()