public abstract class VSAWithSubAttributes extends VSAttribute
VSAttribute.vsaAttributeType is used as the TLV type.
It should be used when communicating with FreeRADIUS
RadiusAttribute.Operator| Modifier and Type | Field and Description |
|---|---|
protected long |
subTlvType |
continuation, extraLength, grouped, hasContinuationByte, lengthLength, typeLength, vendorId, vsaAttributeTypeattributeName, attributeOp, attributeType, attributeValue, overflow, recyclable, recycled| Constructor and Description |
|---|
VSAWithSubAttributes() |
| Modifier and Type | Method and Description |
|---|---|
long |
getFormattedType()
Encode the sub-TLV type like FreeRADIUS does.
|
AttributeList |
getSubAttributes() |
long |
getSubTlvType() |
void |
setSubAttributes(AttributeList subAttributes) |
void |
setSubTlvType(long subTlvType) |
getContinuation, getExtraLength, getLengthLength, getTypeLength, getVendorId, getVsaAttributeType, hasContinuationByte, isGrouped, setContinuation, setContinuation, setFormat, setGrouped, setVendorId, setVsaAttributeType, unsetContinuationgetAttributeName, getAttributeOp, getType, getValue, isOverflow, setAttributeOp, setAttributeOp, setOverflow, setup, setup, setup, setValue, setValue, setValue, toStringpublic long getFormattedType()
Returns the VSA type (lower 1 bytes) encoded with the Vendor ID (upper 2 bytes) and the TLV type ("middle" byte). sub-TLV type cannot be larger than 1 byte.
0 1 2 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Vendor-Id | TLV-Type | VSA-Type | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
getFormattedType in class VSAttributeRadiusAttribute.getFormattedType()public long getSubTlvType()
public void setSubTlvType(long subTlvType)
public AttributeList getSubAttributes()
public void setSubAttributes(AttributeList subAttributes)
Copyright © 2017. All rights reserved.