net.jradius.packet.attribute
Class VSAttribute
java.lang.Object
net.jradius.packet.attribute.RadiusAttribute
net.jradius.packet.attribute.VSAttribute
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- Attr_UnknownVSAttribute, SubAttribute, VSAWithSubAttributes
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.jradius.packet.attribute.RadiusAttribute |
getAttributeName, getAttributeOp, getType, getValue, isOverflow, setAttributeOp, setAttributeOp, setOverflow, setup, setup, setup, setValue, setValue, setValue, toString |
vendorId
protected long vendorId
vsaAttributeType
protected long vsaAttributeType
typeLength
protected short typeLength
lengthLength
protected short lengthLength
extraLength
protected short extraLength
hasContinuationByte
protected boolean hasContinuationByte
continuation
protected short continuation
grouped
protected boolean grouped
VSAttribute
public VSAttribute()
setFormat
public void setFormat(String format)
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.
getTypeLength
public short getTypeLength()
getLengthLength
public short getLengthLength()
getExtraLength
public short getExtraLength()
hasContinuationByte
public boolean hasContinuationByte()
getContinuation
public int getContinuation()
setContinuation
public void setContinuation(short cont)
setContinuation
public void setContinuation()
unsetContinuation
public void unsetContinuation()
isGrouped
public boolean isGrouped()
setGrouped
public void setGrouped(boolean grouped)
Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.