Class AuthenticationResponse
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdResponse<AuthenticationRequest>
-
- org.dcache.xrootd.protocol.messages.AuthenticationResponse
-
- All Implemented Interfaces:
XrootdResponse<AuthenticationRequest>
public class AuthenticationResponse extends AbstractXrootdResponse<AuthenticationRequest>
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
request, stat
-
-
Constructor Summary
Constructors Constructor Description AuthenticationResponse(AuthenticationRequest request, int status, int length, java.lang.String protocol, int step, java.util.List<XrootdBucket> buckets)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescribe()protected voidgetBytes(io.netty.buffer.ByteBuf buffer)intgetDataLength()Returns the length of the response body.java.lang.StringgetProtocol()intgetStep()static voidwriteBytes(io.netty.buffer.ByteBuf buffer, java.lang.String protocol, int step, java.util.List<XrootdBucket> buckets)Code is shared by outbound authentication request used by tpc client.voidwriteTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Writes the encoded message to the given channel context.-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdResponse
getRequest, getStatus
-
-
-
-
Constructor Detail
-
AuthenticationResponse
public AuthenticationResponse(AuthenticationRequest request, int status, int length, java.lang.String protocol, int step, java.util.List<XrootdBucket> buckets)
- Parameters:
request- the request this is a response tostatus- the status (usually kXR_authmore)length-protocol- the currently used authentication protocolstep- the processing stepbuckets- list of buckets containing server-side authentication information (challenge, host certificate, etc.)
-
-
Method Detail
-
writeBytes
public static void writeBytes(io.netty.buffer.ByteBuf buffer, java.lang.String protocol, int step, java.util.List<XrootdBucket> buckets)Code is shared by outbound authentication request used by tpc client.
-
writeTo
public void writeTo(io.netty.channel.ChannelHandlerContext ctx, io.netty.channel.ChannelPromise promise)Description copied from interface:XrootdResponseWrites the encoded message to the given channel context. Does not flush the channel. This is a destructive call and must at most be called once. Decreases the reference count by1and deallocates this object if the reference count reaches0.- Specified by:
writeToin interfaceXrootdResponse<AuthenticationRequest>- Overrides:
writeToin classAbstractXrootdResponse<AuthenticationRequest>
-
describe
public java.lang.String describe()
-
getProtocol
public java.lang.String getProtocol()
-
getStep
public int getStep()
-
getDataLength
public int getDataLength()
Description copied from interface:XrootdResponseReturns the length of the response body. This is the value of the dlen field in the Xrootd Server Response Format. This does not include the length of the 8 byte header.- Specified by:
getDataLengthin interfaceXrootdResponse<AuthenticationRequest>- Specified by:
getDataLengthin classAbstractXrootdResponse<AuthenticationRequest>
-
getBytes
protected void getBytes(io.netty.buffer.ByteBuf buffer)
- Specified by:
getBytesin classAbstractXrootdResponse<AuthenticationRequest>
-
-