Interface RadiusPacket

All Superinterfaces:
AttributeHolder, NestedAttributeHolder
All Known Subinterfaces:
MessageAuthSupport<T>
All Known Implementing Classes:
AccessRequest, AccessRequestChap, AccessRequestEap, AccessRequestPap, AccessResponse, AccountingRequest, BaseRadiusPacket, RadiusRequest, RadiusResponse

public interface RadiusPacket
extends NestedAttributeHolder
  • Field Details

  • Method Details

    • getType

      byte getType()
      Returns:
      Radius packet type
    • getId

      byte getId()
      Returns:
      Radius packet identifier
    • getAuthenticator

      byte[] getAuthenticator()
      Returns the authenticator for this Radius packet.

      For a Radius packet read from a stream, this will return the authenticator sent by the server.

      For a new Radius packet to be sent, this will return the authenticator created, or null if no authenticator has been created yet.

      Returns:
      authenticator, 16 bytes
    • getAttributes

      java.util.List<RadiusAttribute> getAttributes()
      Specified by:
      getAttributes in interface AttributeHolder
      Returns:
      list of RadiusAttributes in packet
    • getDictionary

      Dictionary getDictionary()
      Specified by:
      getDictionary in interface AttributeHolder
      Returns:
      the dictionary this Radius packet uses.
    • copy

      RadiusPacket copy()
      Returns:
      packet of same type as self, including intermediate fields