net.sf.jradius.packet.attribute
Class VSAttribute

java.lang.Object
  extended by net.sf.jradius.packet.attribute.RadiusAttribute
      extended by net.sf.jradius.packet.attribute.VSAttribute
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Attr_UnknownVSAttribute

public abstract class VSAttribute
extends RadiusAttribute

The RADIUS VSA. All radius vendor specific attributes (as build by RadiusDictionary) are derived from this abstract class.

Author:
David Bird
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jradius.packet.attribute.RadiusAttribute
RadiusAttribute.Operator
 
Field Summary
protected  int vendorId
           
protected  int vsaAttributeType
           
 
Fields inherited from class net.sf.jradius.packet.attribute.RadiusAttribute
attributeName, attributeOp, attributeType, attributeValue
 
Constructor Summary
VSAttribute()
           
 
Method Summary
 int getFormattedType()
          Returns the VSA type (lower 2 bytes) encoded with the Vendor ID (upper 2 bytes) as an integer.
 int getVendorId()
           
 int getVsaAttributeType()
           
 void setVendorId(int vendorId)
           
 void setVsaAttributeType(int vsaAttributeType)
           
 
Methods inherited from class net.sf.jradius.packet.attribute.RadiusAttribute
getAttributeName, getAttributeOp, getType, getValue, setAttributeOp, setAttributeOp, setup, setup, setup, setValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vendorId

protected int vendorId

vsaAttributeType

protected int vsaAttributeType
Constructor Detail

VSAttribute

public VSAttribute()
Method Detail

getFormattedType

public int getFormattedType()
Returns the VSA type (lower 2 bytes) encoded with the Vendor ID (upper 2 bytes) as an integer.

Overrides:
getFormattedType in class RadiusAttribute
Returns:
Returns the (internal) formatted attribute type
See Also:
RadiusAttribute.getFormattedType()

getVendorId

public int getVendorId()
Returns:
Returns the vendorId.

setVendorId

public void setVendorId(int vendorId)
Parameters:
vendorId - The vendorId to set.

getVsaAttributeType

public int getVsaAttributeType()
Returns:
Returns the vsaAttributeType.

setVsaAttributeType

public void setVsaAttributeType(int vsaAttributeType)
Parameters:
vsaAttributeType - The vsaAttributeType to set.


Copyright © 2006 The JRadius Project, All Rights Reserved.