Skip to content
Horace Li edited this page Jul 3, 2020 · 1 revision
  • RadiusPacket represents packet and associated data, with RadiusRequest and RadiusResponse as the two variants.
    • encodeRequest() and encodeResponse() return a new copy of the current RadiusPacket with the Authenticator
    • AccessRequest and AccessResponse has a different way of encoding/verifying the packet authenticator compared to other Radius request/response types and encodes the appropriate password/Message-Authenticator attributes.
  • RadiusRequest and RadiusResponse has static methods for creating packets and using a more specific subclass where possible, and for generating a valid packet identifier.
    • If no specicfic subclass is appropriate, defaults to GenericRadiusRequest and GenericRadiusReponse respectively
  • PacketType contains list of constants of packet types. It's intentionally not an enum to allow for types that aren't included in the list / added in the future.
  • PacketEncoder contains methods for converting to/from netty Datagram and ByteBufs.
Clone this wiki locally