Package org.dcache.xrootd.core
Class XrootdProtocolRequestHandler
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- org.dcache.xrootd.core.XrootdRequestHandler
-
- org.dcache.xrootd.core.XrootdProtocolRequestHandler
-
- All Implemented Interfaces:
io.netty.channel.ChannelHandler,io.netty.channel.ChannelInboundHandler
public class XrootdProtocolRequestHandler extends XrootdRequestHandler
-
-
Field Summary
Fields Modifier and Type Field Description protected SigningPolicysigningPolicyprotected TLSSessionInfotlsSessionInfo
-
Constructor Summary
Constructors Constructor Description XrootdProtocolRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XrootdResponse<ProtocolRequest>doOnProtocolRequest(io.netty.channel.ChannelHandlerContext ctx, ProtocolRequest msg)protected voidenforceClientTlsIfDestinationRequiresItForTpc(java.util.Map<java.lang.String,java.lang.String> opaque)This is a supplementary check to make sure that non-TLS-capable clients (i.e., pre-v5) are not allowed to connect if they intend to do TPC and the "requiresTLSForTPC" is set on the destination server.voidsetSigningPolicy(SigningPolicy signingPolicy)voidsetTlsSessionInfo(TLSSessionInfo tlsSessionInfo)-
Methods inherited from class org.dcache.xrootd.core.XrootdRequestHandler
channelActive, channelRead, doOnAuthentication, doOnClose, doOnDirList, doOnEndSession, doOnLocate, doOnLogin, doOnMkDir, doOnMv, doOnOpen, doOnPrepare, doOnQuery, doOnRead, doOnReadV, doOnRm, doOnRmDir, doOnSet, doOnStat, doOnStatx, doOnSync, doOnWrite, getDestinationAddress, getResponse, getSourceAddress, isHealthCheck, requestReceived, respond, unsupported, userEventTriggered, withError, withOk
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
-
-
-
-
Field Detail
-
signingPolicy
protected SigningPolicy signingPolicy
-
tlsSessionInfo
protected TLSSessionInfo tlsSessionInfo
-
-
Method Detail
-
setSigningPolicy
public void setSigningPolicy(SigningPolicy signingPolicy)
-
setTlsSessionInfo
public void setTlsSessionInfo(TLSSessionInfo tlsSessionInfo)
-
doOnProtocolRequest
protected XrootdResponse<ProtocolRequest> doOnProtocolRequest(io.netty.channel.ChannelHandlerContext ctx, ProtocolRequest msg) throws XrootdException
- Overrides:
doOnProtocolRequestin classXrootdRequestHandler- Throws:
XrootdException
-
enforceClientTlsIfDestinationRequiresItForTpc
protected void enforceClientTlsIfDestinationRequiresItForTpc(java.util.Map<java.lang.String,java.lang.String> opaque) throws XrootdExceptionThis is a supplementary check to make sure that non-TLS-capable clients (i.e., pre-v5) are not allowed to connect if they intend to do TPC and the "requiresTLSForTPC" is set on the destination server. We also check here to make sure that the client has connected to the destination server with 'xroots' if the destination server requires TLS for TPC.- Throws:
XrootdException
-
-