net.sf.jradius.packet.attribute
Class VSAttribute
java.lang.Object
net.sf.jradius.packet.attribute.RadiusAttribute
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
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 |
vendorId
protected int vendorId
vsaAttributeType
protected int vsaAttributeType
VSAttribute
public VSAttribute()
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.