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) classAuthHandler.ServerSideHandler.AuthHandshakeCompleteCallback(package private) static classAuthHandler.ServerSideHandler.AuthResponseCallback(package private) static classAuthHandler.ServerSideHandler.AuthResponseCallbackLegacy
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanauthenticated(package private) BookieAuthProviderauthProvider(package private) BookieAuthProvider.FactoryauthProviderFactory(package private) BookieConnectionPeerconnectionPeer
-
Constructor Summary
Constructors Constructor Description ServerSideHandler(BookieConnectionPeer connectionPeer, BookieAuthProvider.Factory authProviderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidchannelActive(io.netty.channel.ChannelHandlerContext ctx)voidchannelInactive(io.netty.channel.ChannelHandlerContext ctx)voidchannelRead(io.netty.channel.ChannelHandlerContext ctx, java.lang.Object msg)booleanisAuthenticated()-
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:
channelActivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelActivein classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
channelInactive
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws java.lang.Exception- Specified by:
channelInactivein interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelInactivein 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:
channelReadin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
channelReadin classio.netty.channel.ChannelInboundHandlerAdapter- Throws:
java.lang.Exception
-
isAuthenticated
public boolean isAuthenticated()
-
-