net.jradius.packet.attribute
Class VSAttribute

java.lang.Object
  extended by net.jradius.packet.attribute.RadiusAttribute
      extended by net.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.jradius.packet.attribute.RadiusAttribute
RadiusAttribute.Operator
 
Field Summary
protected  long vendorId
           
protected  long vsaAttributeType
           
 
Fields inherited from class net.jradius.packet.attribute.RadiusAttribute
attributeName, attributeOp, attributeType, attributeValue
 
Constructor Summary
VSAttribute()
           
 
Method Summary
 long getFormattedType()
          Returns the VSA type (lower 2 bytes) encoded with the Vendor ID (upper 2 bytes) as an integer.
 long getVendorId()
           
 long getVsaAttributeType()
           
 void setVendorId(long vendorId)
           
 void setVsaAttributeType(long vsaAttributeType)
           
 
Methods inherited from class net.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 long vendorId

vsaAttributeType

protected long vsaAttributeType
Constructor Detail

VSAttribute

public VSAttribute()
Method Detail

getFormattedType

public long 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 long getVendorId()
Returns:
Returns the vendorId.

setVendorId

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

getVsaAttributeType

public long getVsaAttributeType()
Returns:
Returns the vsaAttributeType.

setVsaAttributeType

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


Copyright © 2008 JRadius Project, All Rights Reserved.