Package io.grpc.xds.internal.security
Class SecurityProtocolNegotiators.ClientSecurityHandler
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.channel.ChannelDuplexHandler
io.grpc.netty.InternalProtocolNegotiators.ProtocolNegotiationHandler
io.grpc.xds.internal.security.SecurityProtocolNegotiators.ClientSecurityHandler
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
SecurityProtocolNegotiators
static final class SecurityProtocolNegotiators.ClientSecurityHandler
extends io.grpc.netty.InternalProtocolNegotiators.ProtocolNegotiationHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final io.grpc.netty.GrpcHttp2ConnectionHandler
private final SslContextProviderSupplier
-
Constructor Summary
ConstructorsConstructorDescriptionClientSecurityHandler
(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
exceptionCaught
(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) protected final void
fireProtocolNegotiationEvent
(io.netty.channel.ChannelHandlerContext arg0) protected final io.grpc.netty.ProtocolNegotiationEvent
final void
handlerAdded
(io.netty.channel.ChannelHandlerContext arg0) protected void
handlerAdded0
(io.netty.channel.ChannelHandlerContext ctx) protected void
protocolNegotiationEventTriggered
(io.netty.channel.ChannelHandlerContext arg0) protected final void
replaceProtocolNegotiationEvent
(io.grpc.netty.ProtocolNegotiationEvent arg0) final void
userEventTriggered
(io.netty.channel.ChannelHandlerContext arg0, Object arg1) protected void
userEventTriggered0
(io.netty.channel.ChannelHandlerContext arg0, Object arg1) 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
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerRemoved
-
Field Details
-
grpcHandler
private final io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler -
sslContextProviderSupplier
-
-
Constructor Details
-
ClientSecurityHandler
ClientSecurityHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier)
-
-
Method Details
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx) -
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
handlerAdded
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in classio.netty.channel.ChannelHandlerAdapter
- Throws:
Exception
-
userEventTriggered
public final void userEventTriggered(io.netty.channel.ChannelHandlerContext arg0, Object arg1) throws Exception - Specified by:
userEventTriggered
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext arg0, Object arg1) throws Exception - Throws:
Exception
-
protocolNegotiationEventTriggered
@ForOverride protected void protocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext arg0) -
getProtocolNegotiationEvent
protected final io.grpc.netty.ProtocolNegotiationEvent getProtocolNegotiationEvent() -
replaceProtocolNegotiationEvent
protected final void replaceProtocolNegotiationEvent(io.grpc.netty.ProtocolNegotiationEvent arg0) -
fireProtocolNegotiationEvent
protected final void fireProtocolNegotiationEvent(io.netty.channel.ChannelHandlerContext arg0)
-