Class AuthenticationRequest
- java.lang.Object
-
- org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
-
- org.dcache.xrootd.protocol.messages.AuthenticationRequest
-
- All Implemented Interfaces:
XrootdRequest
public class AuthenticationRequest extends AbstractXrootdRequest
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
requestId, session, streamId
-
-
Constructor Summary
Constructors Constructor Description AuthenticationRequest(io.netty.buffer.ByteBuf buffer)Deserialize protocol, processing step and all the bucks sent by the client
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescribe()static java.util.Map<XrootdSecurityProtocol.BucketType,XrootdBucket>deserializeBuckets(io.netty.buffer.ByteBuf buffer)Deserialize the buckets sent by the client and put them into a EnumMap sorted by their header-information.static java.lang.StringdeserializeProtocol(io.netty.buffer.ByteBuf buffer)static intdeserializeStep(io.netty.buffer.ByteBuf buffer)java.util.Map<XrootdSecurityProtocol.BucketType,XrootdBucket>getBuckets()java.lang.StringgetProtocol()intgetStep()java.lang.IntegergetVersion()-
Methods inherited from class org.dcache.xrootd.protocol.messages.AbstractXrootdRequest
getRequestId, getSession, getStreamId, getSubject, setSession
-
-
-
-
Method Detail
-
describe
public java.lang.String describe()
-
deserializeBuckets
public static java.util.Map<XrootdSecurityProtocol.BucketType,XrootdBucket> deserializeBuckets(io.netty.buffer.ByteBuf buffer) throws java.io.IOException
Deserialize the buckets sent by the client and put them into a EnumMap sorted by their header-information. As there are list-type buffers, this method can be called recursively. In current xrootd, this is limited to a maximum of 1 recursion (main buffer containing list of further buffers).- Parameters:
buffer- The buffer containing the received buckets- Returns:
- Map from bucket-type to deserialized buckets
- Throws:
java.io.IOException- Failure of deserialization
-
deserializeProtocol
public static java.lang.String deserializeProtocol(io.netty.buffer.ByteBuf buffer)
-
deserializeStep
public static int deserializeStep(io.netty.buffer.ByteBuf buffer)
-
getBuckets
public java.util.Map<XrootdSecurityProtocol.BucketType,XrootdBucket> getBuckets()
-
getStep
public int getStep()
-
getProtocol
public java.lang.String getProtocol()
-
getVersion
public java.lang.Integer getVersion()
-
-