Class ProtocolNegotiators.ClientTlsHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
io.grpc.netty.ProtocolNegotiators.ClientTlsHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler, io.netty.channel.ChannelOutboundHandler
- Enclosing class:
ProtocolNegotiators
static final class ProtocolNegotiators.ClientTlsHandler
extends ProtocolNegotiators.ProtocolNegotiationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, String authority, Executor executor, ChannelLogger negotiationLogger, Optional<Runnable> handshakeCompleteRunnable) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandlerAdded0(io.netty.channel.ChannelHandlerContext ctx) private voidpropagateTlsComplete(io.netty.channel.ChannelHandlerContext ctx, SSLSession session) protected voiduserEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, Object evt) Methods inherited from class ProtocolNegotiators.ProtocolNegotiationHandler
fireProtocolNegotiationEvent, getProtocolNegotiationEvent, handlerAdded, protocolNegotiationEventTriggered, replaceProtocolNegotiationEvent, userEventTriggeredMethods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read, writeMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaughtMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Field Details
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext -
host
-
port
private final int port -
executor
-
handshakeCompleteRunnable
-
-
Constructor Details
-
ClientTlsHandler
ClientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, String authority, Executor executor, ChannelLogger negotiationLogger, Optional<Runnable> handshakeCompleteRunnable)
-
-
Method Details
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx) - Overrides:
handlerAdded0in classProtocolNegotiators.ProtocolNegotiationHandler
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Overrides:
userEventTriggered0in classProtocolNegotiators.ProtocolNegotiationHandler- Throws:
Exception
-
propagateTlsComplete
-