Class Ipv6PrefixAttribute
java.lang.Object
org.tinyradius.core.attribute.type.OctetsAttribute
org.tinyradius.core.attribute.type.Ipv6PrefixAttribute
- All Implemented Interfaces:
RadiusAttribute
public class Ipv6PrefixAttribute extends OctetsAttribute
This class represents a Radius attribute for an IPv6 prefix.
-
Constructor Summary
Constructors Constructor Description Ipv6PrefixAttribute(Dictionary dictionary, int vendorId, int type, byte[] data)
Ipv6PrefixAttribute(Dictionary dictionary, int vendorId, int type, java.lang.String value)
Constructs an IPv6 prefix attribute. -
Method Summary
Modifier and Type Method Description java.lang.String
getValueString()
Returns the attribute value as a string of the format "x:x:x:x:x:x:x:x/yy".Methods inherited from class org.tinyradius.core.attribute.type.OctetsAttribute
encode, equals, getDictionary, getTag, getType, getValue, getVendorId, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.tinyradius.core.attribute.type.RadiusAttribute
decode, flatten, getAttributeName, getAttributeTemplate, getTagBytes, isEncoded, toByteArray
-
Constructor Details
-
Ipv6PrefixAttribute
-
Ipv6PrefixAttribute
Constructs an IPv6 prefix attribute.- Parameters:
dictionary
- dictionary to usevendorId
- vendor ID or -1type
- attribute type codevalue
- value, format: "ipv6 address"/prefix
-
-
Method Details
-
getValueString
public java.lang.String getValueString()Returns the attribute value as a string of the format "x:x:x:x:x:x:x:x/yy".- Specified by:
getValueString
in interfaceRadiusAttribute
- Overrides:
getValueString
in classOctetsAttribute
- Returns:
- value of this attribute as a hex string.
-