Package io.grpc.netty
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
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.concurrent.Executor
executor
private java.util.Optional<java.lang.Runnable>
handshakeCompleteRunnable
private java.lang.String
host
private int
port
private io.netty.handler.ssl.SslContext
sslContext
-
Constructor Summary
Constructors Constructor Description ClientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, java.lang.String authority, java.util.concurrent.Executor executor, ChannelLogger negotiationLogger, java.util.Optional<java.lang.Runnable> handshakeCompleteRunnable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
handlerAdded0(io.netty.channel.ChannelHandlerContext ctx)
private void
propagateTlsComplete(io.netty.channel.ChannelHandlerContext ctx, javax.net.ssl.SSLSession session)
protected void
userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt)
-
Methods inherited from class io.grpc.netty.ProtocolNegotiators.ProtocolNegotiationHandler
fireProtocolNegotiationEvent, getProtocolNegotiationEvent, handlerAdded, protocolNegotiationEventTriggered, replaceProtocolNegotiationEvent, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, flush, read, write
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
sslContext
private final io.netty.handler.ssl.SslContext sslContext
-
host
private final java.lang.String host
-
port
private final int port
-
executor
private java.util.concurrent.Executor executor
-
handshakeCompleteRunnable
private final java.util.Optional<java.lang.Runnable> handshakeCompleteRunnable
-
-
Constructor Detail
-
ClientTlsHandler
ClientTlsHandler(io.netty.channel.ChannelHandler next, io.netty.handler.ssl.SslContext sslContext, java.lang.String authority, java.util.concurrent.Executor executor, ChannelLogger negotiationLogger, java.util.Optional<java.lang.Runnable> handshakeCompleteRunnable)
-
-
Method Detail
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx)
- Overrides:
handlerAdded0
in classProtocolNegotiators.ProtocolNegotiationHandler
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object evt) throws java.lang.Exception
- Overrides:
userEventTriggered0
in classProtocolNegotiators.ProtocolNegotiationHandler
- Throws:
java.lang.Exception
-
propagateTlsComplete
private void propagateTlsComplete(io.netty.channel.ChannelHandlerContext ctx, javax.net.ssl.SSLSession session)
-
-