Package io.grpc.xds.internal.security
Class SecurityProtocolNegotiators.ServerSecurityHandler
- 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.ServerSecurityHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
,io.netty.channel.ChannelOutboundHandler
- Enclosing class:
- SecurityProtocolNegotiators
static final class SecurityProtocolNegotiators.ServerSecurityHandler extends io.grpc.netty.InternalProtocolNegotiators.ProtocolNegotiationHandler
-
-
Field Summary
Fields Modifier and Type Field Description private io.grpc.netty.GrpcHttp2ConnectionHandler
grpcHandler
private SslContextProviderSupplier
sslContextProviderSupplier
-
Constructor Summary
Constructors Constructor Description ServerSecurityHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fireProtocolNegotiationEvent(io.netty.channel.ChannelHandlerContext arg0)
protected io.grpc.netty.ProtocolNegotiationEvent
getProtocolNegotiationEvent()
void
handlerAdded(io.netty.channel.ChannelHandlerContext arg0)
protected void
handlerAdded0(io.netty.channel.ChannelHandlerContext ctx)
protected void
protocolNegotiationEventTriggered(io.netty.channel.ChannelHandlerContext arg0)
protected void
replaceProtocolNegotiationEvent(io.grpc.netty.ProtocolNegotiationEvent arg0)
void
userEventTriggered(io.netty.channel.ChannelHandlerContext arg0, java.lang.Object arg1)
protected void
userEventTriggered0(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, exceptionCaught
-
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
-
ServerSecurityHandler
ServerSecurityHandler(io.grpc.netty.GrpcHttp2ConnectionHandler grpcHandler, SslContextProviderSupplier sslContextProviderSupplier)
-
-
Method Detail
-
handlerAdded0
protected void handlerAdded0(io.netty.channel.ChannelHandlerContext ctx)
-
handlerAdded
public final void handlerAdded(io.netty.channel.ChannelHandlerContext arg0) throws java.lang.Exception
- Specified by:
handlerAdded
in interfaceio.netty.channel.ChannelHandler
- Overrides:
handlerAdded
in 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:
userEventTriggered
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in 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)
-
-