Class AuthenticationResponse

    • 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 to
        status - the status (usually kXR_authmore)
        length -
        protocol - the currently used authentication protocol
        step - the processing step
        buckets - 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: XrootdResponse
        Writes 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 by 1 and deallocates this object if the reference count reaches 0.
        Specified by:
        writeTo in interface XrootdResponse<AuthenticationRequest>
        Overrides:
        writeTo in class AbstractXrootdResponse<AuthenticationRequest>
      • describe

        public java.lang.String describe()
      • getProtocol

        public java.lang.String getProtocol()
      • getStep

        public int getStep()