net.jradius.packet.attribute
Class VSAWithSubAttributes
java.lang.Object
net.jradius.packet.attribute.RadiusAttribute
net.jradius.packet.attribute.VSAttribute
net.jradius.packet.attribute.VSAWithSubAttributes
- All Implemented Interfaces:
- Serializable
public abstract class VSAWithSubAttributes
- extends VSAttribute
Sub-TLV attribute, as specified by WiMAX.
It is a VSA with a TLV type.
VSAttribute.vsaAttributeType
is used as the TLV type.
It should be used when communicating with FreeRADIUS
- Author:
- Danilo Levantesi
- See Also:
- Serialized Form
Methods inherited from class net.jradius.packet.attribute.VSAttribute |
getContinuation, getExtraLength, getLengthLength, getTypeLength, getVendorId, getVsaAttributeType, hasContinuationByte, isGrouped, setContinuation, setContinuation, setFormat, setGrouped, setVendorId, setVsaAttributeType, unsetContinuation |
Methods inherited from class net.jradius.packet.attribute.RadiusAttribute |
getAttributeName, getAttributeOp, getType, getValue, isOverflow, setAttributeOp, setAttributeOp, setOverflow, setup, setup, setup, setValue, setValue, setValue, toString |
subTlvType
protected long subTlvType
VSAWithSubAttributes
public VSAWithSubAttributes()
getFormattedType
public long getFormattedType()
- Encode the sub-TLV type like FreeRADIUS does.
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 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- Overrides:
getFormattedType
in class VSAttribute
- Returns:
- Returns the (internal) formatted attribute type
- See Also:
RadiusAttribute.getFormattedType()
getSubTlvType
public long getSubTlvType()
setSubTlvType
public void setSubTlvType(long subTlvType)
getSubAttributes
public AttributeList getSubAttributes()
setSubAttributes
public void setSubAttributes(AttributeList subAttributes)
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.