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
-
-
Field Summary
Fields Modifier and Type Field Description private io.grpc.netty.GrpcHttp2ConnectionHandlergrpcHandlerprivate SslContextProviderSuppliersslContextProviderSupplier
-
Constructor Summary
Constructors Constructor Description ClientSecurityHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause)protected voidfireProtocolNegotiationEvent(io.netty.channel.ChannelHandlerContext arg0)protected io.grpc.netty.ProtocolNegotiationEventgetProtocolNegotiationEvent()voidhandlerAdded(io.netty.channel.ChannelHandlerContext arg0)protected voidhandlerAdded0(io.netty.channel.ChannelHandlerContext ctx)protected voidprotocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext arg0)protected voidreplaceProtocolNegotiationEvent(io.grpc.netty.ProtocolNegotiationEvent arg0)voiduserEventTriggered(io.netty.channel.ChannelHandlerContext arg0, java.lang.Object arg1)protected voiduserEventTriggered0(io.netty.channel.ChannelHandlerContext arg0, java.lang.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
-
-
-
-
Field Detail
-
grpcHandler
private final io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler
-
sslContextProviderSupplier
private final SslContextProviderSupplier sslContextProviderSupplier
-
-
Constructor Detail
-
ClientSecurityHandler
ClientSecurityHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier)
-
-
Method Detail
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx)
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable cause) throws java.lang.Exception- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
handlerAdded
public final void handlerAdded(io.netty.channel.ChannelHandlerContext arg0) throws java.lang.Exception- Specified by:
handlerAddedin interfaceio.netty.channel.ChannelHandler- Overrides:
handlerAddedin classio.netty.channel.ChannelHandlerAdapter- Throws:
java.lang.Exception
-
userEventTriggered
public final void userEventTriggered(io.netty.channel.ChannelHandlerContext arg0, java.lang.Object arg1) throws java.lang.Exception- Specified by:
userEventTriggeredin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
userEventTriggered0
protected void userEventTriggered0(io.netty.channel.ChannelHandlerContext arg0, java.lang.Object arg1) throws java.lang.Exception- Throws:
java.lang.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)
-
-