Package org.dcache.xrootd.security
Class RawBucket
- java.lang.Object
-
- org.dcache.xrootd.security.XrootdBucket
-
- org.dcache.xrootd.security.RawBucket
-
public class RawBucket extends XrootdBucket
A bucket containing a header plus a number of bytes. This can be binary data, but a raw-bucket can also represent encryptet buckets of another type.- Author:
- radicke, tzangerl
- See Also:
XrootdBucket
-
-
Field Summary
-
Fields inherited from class org.dcache.xrootd.security.XrootdBucket
_type
-
-
Constructor Summary
Constructors Constructor Description RawBucket(XrootdSecurityProtocol.BucketType type, byte[] data)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RawBucketdeserialize(XrootdSecurityProtocol.BucketType type, io.netty.buffer.ByteBuf buffer)intdump(java.lang.StringBuilder builder, java.lang.String step, int number)This usually will be called only if trace is enabled.static voiddumpBytes(java.lang.StringBuilder builder, byte[] data)byte[]getContent()intgetSize()voidserialize(io.netty.buffer.ByteBuf out)java.lang.StringtoString()-
Methods inherited from class org.dcache.xrootd.security.XrootdBucket
getType
-
-
-
-
Constructor Detail
-
RawBucket
public RawBucket(XrootdSecurityProtocol.BucketType type, byte[] data)
-
-
Method Detail
-
dumpBytes
public static void dumpBytes(java.lang.StringBuilder builder, byte[] data)
-
dump
public int dump(java.lang.StringBuilder builder, java.lang.String step, int number)This usually will be called only if trace is enabled. We here imitate the XrootD XrdSutBuffer DUMP printout.- Overrides:
dumpin classXrootdBucket
-
getContent
public byte[] getContent()
-
deserialize
public static RawBucket deserialize(XrootdSecurityProtocol.BucketType type, io.netty.buffer.ByteBuf buffer)
-
serialize
public void serialize(io.netty.buffer.ByteBuf out)
- Overrides:
serializein classXrootdBucket
-
getSize
public int getSize()
- Overrides:
getSizein classXrootdBucket- Returns:
- Length of the serialized bucket (in bytes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classXrootdBucket
-
-