Class IntegerAttribute

java.lang.Object
org.tinyradius.core.attribute.type.OctetsAttribute
org.tinyradius.core.attribute.type.IntegerAttribute
All Implemented Interfaces:
RadiusAttribute

public class IntegerAttribute extends OctetsAttribute
This class represents a Radius attribute which only contains a 32 bit integer.
  • Constructor Details

    • IntegerAttribute

      public IntegerAttribute(Dictionary dictionary, int vendorId, io.netty.buffer.ByteBuf data)
  • Method Details

    • getValueLong

      public long getValueLong()
      Returns:
      long value of this attribute (unsigned int)
    • getValueInt

      public int getValueInt()
      Returns:
      int value of this attribute. May be negative as Java ints are signed.
    • getValueString

      public String getValueString()
      Returns the value of this attribute as a string. Tries to resolve enumerations.
      Specified by:
      getValueString in interface RadiusAttribute
      Overrides:
      getValueString in class OctetsAttribute
      Returns:
      value of this attribute as a hex string.
    • stringParser

      public static byte[] stringParser(Dictionary dictionary, int vendorId, int type, String value)