Package org.apache.bookkeeper.proto
Class AuthHandler.ServerSideHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.apache.bookkeeper.proto.AuthHandler.ServerSideHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- AuthHandler
static class AuthHandler.ServerSideHandler extends io.netty.channel.ChannelInboundHandlerAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
AuthHandler.ServerSideHandler.AuthHandshakeCompleteCallback
(package private) static class
AuthHandler.ServerSideHandler.AuthResponseCallback
(package private) static class
AuthHandler.ServerSideHandler.AuthResponseCallbackLegacy
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
authenticated
(package private) BookieAuthProvider
authProvider
(package private) BookieAuthProvider.Factory
authProviderFactory
(package private) BookieConnectionPeer
connectionPeer
-
Constructor Summary
Constructors Constructor Description ServerSideHandler(BookieConnectionPeer connectionPeer, BookieAuthProvider.Factory authProviderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
channelActive(io.netty.channel.ChannelHandlerContext ctx)
void
channelInactive(io.netty.channel.ChannelHandlerContext ctx)
void
channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)
boolean
isAuthenticated()
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
authenticated
volatile boolean authenticated
-
authProviderFactory
final BookieAuthProvider.Factory authProviderFactory
-
connectionPeer
final BookieConnectionPeer connectionPeer
-
authProvider
BookieAuthProvider authProvider
-
-
Constructor Detail
-
ServerSideHandler
ServerSideHandler(BookieConnectionPeer connectionPeer, BookieAuthProvider.Factory authProviderFactory)
-
-
Method Detail
-
channelActive
public void channelActive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
- Specified by:
channelActive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelActive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
java.lang.Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception
- Specified by:
channelInactive
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelInactive
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
java.lang.Exception
-
channelRead
public void channelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
- Specified by:
channelRead
in interfaceio.netty.channel.ChannelInboundHandler
- Overrides:
channelRead
in classio.netty.channel.ChannelInboundHandlerAdapter
- Throws:
java.lang.Exception
-
isAuthenticated
public boolean isAuthenticated()
-
-