Class ZTNClientAuthenticationHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.dcache.xrootd.tpc.AbstractClientRequestHandler
-
- org.dcache.xrootd.tpc.AbstractClientAuthnHandler
-
- org.dcache.xrootd.plugins.authn.ztn.ZTNClientAuthenticationHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class ZTNClientAuthenticationHandler extends AbstractClientAuthnHandler
Client-side handler which does TPC via ztn authentication. Added to the channel pipeline to handle protocol and auth requests and responses. This implementation is for future use, since it is not officially supported for tokens (ztn/scitokens) in xrootd. It has been tested works as far as it goes, but how the source token actually arrives at the TPC client has not yet been resolved. Also, the padding in the token header will be made explicit with a version of the protocol > 0. This is necessary for interaction between xrootd and dCache.
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.tpc.AbstractClientAuthnHandler
loginResponse, protocol
-
Fields inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
client, LOGGER
-
-
Constructor Summary
Constructors Constructor Description ZTNClientAuthenticationHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoOnAuthenticationResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAuthenticationResponse response)protected voidsendAuthenticationRequest(io.netty.channel.ChannelHandlerContext ctx)-
Methods inherited from class org.dcache.xrootd.tpc.AbstractClientAuthnHandler
doOnAsynResponse, doOnLoginResponse, doOnWaitResponse, exceptionCaught
-
Methods inherited from class org.dcache.xrootd.tpc.AbstractClientRequestHandler
asynWaitTimeout, channelRead, doOnAttnResponse, doOnChecksumResponse, doOnCloseResponse, doOnErrorResponse, doOnHandshakeResponse, doOnOpenResponse, doOnProtocolResponse, doOnReadResponse, doOnRedirectResponse, doOnWaitRespResponse, getWaitInSeconds, responseReceived, 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
-
-
-
-
Method Detail
-
doOnAuthenticationResponse
protected void doOnAuthenticationResponse(io.netty.channel.ChannelHandlerContext ctx, InboundAuthenticationResponse response) throws XrootdException- Overrides:
doOnAuthenticationResponsein classAbstractClientRequestHandler- Throws:
XrootdException
-
sendAuthenticationRequest
protected void sendAuthenticationRequest(io.netty.channel.ChannelHandlerContext ctx) throws XrootdException- Overrides:
sendAuthenticationRequestin classAbstractClientRequestHandler- Throws:
XrootdException
-
-