Class GSIBucket
- java.lang.Object
-
- org.dcache.xrootd.plugins.authn.gsi.GSIBucket
-
- Direct Known Subclasses:
NestedBucketBuffer,RawBucket,StringBucket,UnsignedIntBucket
public abstract class GSIBucket extends java.lang.ObjectAn XrootdBucket is a serialized datatype (string, uint, binary, list) with an int32 header describing its contents. The headers are well defined and for each header it is known which datatype to expect.- Author:
- radicke, tzangerl
-
-
Field Summary
Fields Modifier and Type Field Description protected XrootdSecurityProtocol.BucketType_type
-
Constructor Summary
Constructors Constructor Description GSIBucket(XrootdSecurityProtocol.BucketType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdump(java.lang.StringBuilder builder, java.lang.String step, int number)This usually will be called only if trace is enabled.intgetSize()XrootdSecurityProtocol.BucketTypegetType()voidserialize(io.netty.buffer.ByteBuf out)java.lang.StringtoString()
-
-
-
Field Detail
-
_type
protected final XrootdSecurityProtocol.BucketType _type
-
-
Constructor Detail
-
GSIBucket
public GSIBucket(XrootdSecurityProtocol.BucketType type)
-
-
Method Detail
-
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.
-
getType
public XrootdSecurityProtocol.BucketType getType()
-
serialize
public void serialize(io.netty.buffer.ByteBuf out)
-
getSize
public int getSize()
- Returns:
- Length of the serialized bucket (in bytes)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-