Class SslContextFactory


  • public final class SslContextFactory
    extends java.lang.Object
    A factory for creating SslContexts.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static io.netty.handler.ssl.SslContext forClient​(ReadOnlyClientSecurityConfig config, java.util.List<java.lang.String> supportedAlpnProtocols)
      A new context for a client using the passed config.
      static io.netty.handler.ssl.SslContext forServer​(ReadOnlyServerSecurityConfig config, java.util.List<java.lang.String> supportedAlpnProtocols)
      A new context for a server using the passed config.
      • Methods inherited from class java.lang.Object

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

      • forClient

        public static io.netty.handler.ssl.SslContext forClient​(ReadOnlyClientSecurityConfig config,
                                                                java.util.List<java.lang.String> supportedAlpnProtocols)
        A new context for a client using the passed config.
        Parameters:
        config - SSL config.
        supportedAlpnProtocols - the list of supported ALPN protocols.
        Returns:
        A new SslContext for a client.
      • forServer

        public static io.netty.handler.ssl.SslContext forServer​(ReadOnlyServerSecurityConfig config,
                                                                java.util.List<java.lang.String> supportedAlpnProtocols)
        A new context for a server using the passed config.
        Parameters:
        config - SSL config.
        supportedAlpnProtocols - the list of supported ALPN protocols.
        Returns:
        A new SslContext for a server.