net.jradius.packet.attribute
Class VSAWithSubAttributes

java.lang.Object
  extended by net.jradius.packet.attribute.RadiusAttribute
      extended by net.jradius.packet.attribute.VSAttribute
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class net.jradius.packet.attribute.RadiusAttribute
RadiusAttribute.Operator
 
Field Summary
protected  long subTlvType
           
 
Fields inherited from class net.jradius.packet.attribute.VSAttribute
continuation, extraLength, grouped, hasContinuationByte, lengthLength, typeLength, vendorId, vsaAttributeType
 
Fields inherited from class net.jradius.packet.attribute.RadiusAttribute
attributeName, attributeOp, attributeType, attributeValue, overflow, recyclable, recycled
 
Constructor Summary
VSAWithSubAttributes()
           
 
Method Summary
 long getFormattedType()
          Encode the sub-TLV type like FreeRADIUS does.
 AttributeList getSubAttributes()
           
 long getSubTlvType()
           
 void setSubAttributes(AttributeList subAttributes)
           
 void setSubTlvType(long subTlvType)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

subTlvType

protected long subTlvType
Constructor Detail

VSAWithSubAttributes

public VSAWithSubAttributes()
Method Detail

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.