Class OutboundAuthenticationRequest
- java.lang.Object
-
- org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
-
- org.dcache.xrootd.tpc.protocol.messages.OutboundAuthenticationRequest
-
- All Implemented Interfaces:
XrootdOutboundRequest
public class OutboundAuthenticationRequest extends AbstractXrootdOutboundRequest
Request to third-party source server. This has the same structure as the request to the server. kXR_char streamid[2]
kXR_unt16
kXR_char reserved[12]
kXR_char credtype[4]
kXR_int32 credlen
kXR_char cred[credlen] Different security protocols will use the cred data differently. that functionality should not be here, but in the specific protocol's processing.
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
requestId, streamId
-
-
Constructor Summary
Constructors Constructor Description OutboundAuthenticationRequest(int streamId, java.lang.String credType, int length, java.util.function.Consumer<io.netty.buffer.ByteBuf> serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidgetParams(io.netty.buffer.ByteBuf buffer)protected intgetParamsLen()voidwriteTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Marshals this request object into a buffer and writes it to the context.-
Methods inherited from class org.dcache.xrootd.tpc.protocol.messages.AbstractXrootdOutboundRequest
getRequestId, getStreamId, writeToBuffer
-
-
-
-
Constructor Detail
-
OutboundAuthenticationRequest
public OutboundAuthenticationRequest(int streamId, java.lang.String credType, int length, java.util.function.Consumer<io.netty.buffer.ByteBuf> serializer)- Parameters:
streamId- of this requestcredType- usually the protocol namelength- of the data container to be serializedserializer- function responsible for writing to the buffer
-
-
Method Detail
-
writeTo
public void writeTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Description copied from interface:XrootdOutboundRequestMarshals this request object into a buffer and writes it to the context.- Specified by:
writeToin interfaceXrootdOutboundRequest- Overrides:
writeToin classAbstractXrootdOutboundRequest
-
getParams
protected void getParams(io.netty.buffer.ByteBuf buffer)
- Specified by:
getParamsin classAbstractXrootdOutboundRequest
-
getParamsLen
protected int getParamsLen()
- Specified by:
getParamsLenin classAbstractXrootdOutboundRequest
-
-