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, byte type, byte[] data)
Ipv6PrefixAttribute(Dictionary dictionary, int vendorId, byte 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
decode, encode, equals, flatten, getAttributeName, getAttributeTemplate, getDictionary, getTag, getType, getValue, getVendorId, hashCode, toByteArray, toString
-
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.
-