Class RadiusPackets

java.lang.Object
org.tinyradius.packet.util.RadiusPackets

public class RadiusPackets
extends java.lang.Object
Utils for creating new RadiusPackets
  • Method Summary

    Modifier and Type Method Description
    static RadiusRequest createRequest​(Dictionary dictionary, byte type, byte identifier, byte[] authenticator, java.util.List<RadiusAttribute> attributes)
    Creates a RadiusPacket object.
    static RadiusResponse createResponse​(Dictionary dictionary, byte type, byte identifier, byte[] authenticator, java.util.List<RadiusAttribute> attributes)
    Creates a RadiusPacket object.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createRequest

      public static RadiusRequest createRequest​(Dictionary dictionary, byte type, byte identifier, byte[] authenticator, java.util.List<RadiusAttribute> attributes)
      Creates a RadiusPacket object. Depending on the passed type, an appropriate packet is created. Also sets the type, and the the packet identifier.
      Parameters:
      dictionary - custom dictionary to use
      type - packet type
      identifier - packet identifier
      authenticator - authenticator for packet, nullable
      attributes - list of attributes for packet
      Returns:
      RadiusPacket object
    • createResponse

      public static RadiusResponse createResponse​(Dictionary dictionary, byte type, byte identifier, byte[] authenticator, java.util.List<RadiusAttribute> attributes)
      Creates a RadiusPacket object. Depending on the passed type, an appropriate packet is created. Also sets the type, and the the packet identifier.
      Parameters:
      dictionary - custom dictionary to use
      type - packet type
      identifier - packet identifier
      authenticator - authenticator for packet, nullable
      attributes - list of attributes for packet
      Returns:
      RadiusPacket object