Class SslClientInitializer<C extends io.netty.channel.Channel>

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelInitializer<C>
google.registry.networking.handler.SslClientInitializer<C>
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

@Singleton @Sharable public class SslClientInitializer<C extends io.netty.channel.Channel> extends io.netty.channel.ChannelInitializer<C>
Adds a client side SSL handler to the channel pipeline.

This must be the first handler provided for any handler provider list, if it is provided. The type parameter C is needed so that unit tests can construct this handler that works with EmbeddedChannel;

  • Method Details

    • createSslClientInitializerWithSystemTrustStore

      public static SslClientInitializer<io.netty.channel.socket.nio.NioSocketChannel> createSslClientInitializerWithSystemTrustStore(io.netty.handler.ssl.SslProvider sslProvider, Function<io.netty.channel.Channel,String> hostProvider, Function<io.netty.channel.Channel,Integer> portProvider)
    • createSslClientInitializerWithSystemTrustStoreAndClientAuthentication

      public static SslClientInitializer<io.netty.channel.socket.nio.NioSocketChannel> createSslClientInitializerWithSystemTrustStoreAndClientAuthentication(io.netty.handler.ssl.SslProvider sslProvider, Function<io.netty.channel.Channel,String> hostProvider, Function<io.netty.channel.Channel,Integer> portProvider, Supplier<PrivateKey> privateKeySupplier, Supplier<com.google.common.collect.ImmutableList<X509Certificate>> certificateChainSupplier)
    • initChannel

      protected void initChannel(C channel) throws Exception
      Specified by:
      initChannel in class io.netty.channel.ChannelInitializer<C extends io.netty.channel.Channel>
      Throws:
      Exception