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
;
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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) 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) protected void
initChannel
(C channel) Methods inherited from class io.netty.channel.ChannelInitializer
channelRegistered, exceptionCaught, handlerAdded, handlerRemoved
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelUnregistered, channelWritabilityChanged, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, isSharable
-
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
-