Package org.dcache.xrootd.tpc
Class AbstractClientAuthnHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.dcache.xrootd.tpc.AbstractClientRequestHandler
-
- org.dcache.xrootd.tpc.AbstractClientAuthnHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public abstract class AbstractClientAuthnHandler extends AbstractClientRequestHandler
Base class for authentication handlers used for outbound requests from the embedded third-party-client.
-
-
Field Summary
Fields Modifier and Type Field Description protected InboundLoginResponseloginResponseprotected java.lang.Stringprotocol-
Fields inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
client, LOGGER
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractClientAuthnHandler(java.lang.String protocol)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoOnAsynResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAttnResponse response)protected voiddoOnLoginResponse(io.netty.channel.ChannelHandlerContext ctx, InboundLoginResponse response)Arriving here means login succeeded, but authentication required.protected voiddoOnWaitResponse(io.netty.channel.ChannelHandlerContext ctx, AbstractXrootdInboundResponse response)voidexceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable t)Overridden not to close the client and channel, but to pass control off to the next (authentication) handler in the chain.-
Methods inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
asynWaitTimeout, channelRead, doOnAttnResponse, doOnAuthenticationResponse, doOnChecksumResponse, doOnCloseResponse, doOnErrorResponse, doOnHandshakeResponse, doOnOpenResponse, doOnProtocolResponse, doOnReadResponse, doOnRedirectResponse, doOnWaitRespResponse, getWaitInSeconds, responseReceived, sendAuthenticationRequest, sendChecksumRequest, sendCloseRequest, sendLoginRequest, sendOpenRequest, sendReadRequest, setClient, unsupported
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
protocol
protected final java.lang.String protocol
-
loginResponse
protected InboundLoginResponse loginResponse
-
-
Method Detail
-
exceptionCaught
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, java.lang.Throwable t)Overridden not to close the client and channel, but to pass control off to the next (authentication) handler in the chain.- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceio.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classAbstractClientRequestHandler
-
doOnAsynResponse
protected void doOnAsynResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAttnResponse response) throws XrootdException- Overrides:
doOnAsynResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
doOnLoginResponse
protected void doOnLoginResponse(io.netty.channel.ChannelHandlerContext ctx, InboundLoginResponse response) throws XrootdExceptionArriving here means login succeeded, but authentication required.- Overrides:
doOnLoginResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
doOnWaitResponse
protected void doOnWaitResponse(io.netty.channel.ChannelHandlerContext ctx, AbstractXrootdInboundResponse response) throws XrootdException- Overrides:
doOnWaitResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
-