Class RadiusClient



  • public class RadiusClient
    extends AbstractListener
    This object represents a simple Radius client which communicates with a specified Radius server. You can use a single instance of this object to authenticate or account different users with the same Radius server as long as you authenticate/account one user after the other.

    This object is thread safe, but requires a packet manager to avoid confusion with the mapping of request and result packets.

    • Constructor Summary

      Constructors 
      Constructor Description
      RadiusClient​(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> factory, ClientHandler clientHandler, RetryStrategy retryStrategy, java.net.InetSocketAddress listenAddress)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.util.concurrent.Future<RadiusPacket> communicate​(RadiusPacket originalPacket, RadiusEndpoint endpoint)  
      io.netty.util.concurrent.Future<java.lang.Void> start​()
      Registers the channel and binds to address.
      io.netty.util.concurrent.Future<java.lang.Void> stop​()
      Shutdown and close resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RadiusClient

        public RadiusClient​(io.netty.channel.EventLoopGroup eventLoopGroup,
                            io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> factory,
                            ClientHandler clientHandler,
                            RetryStrategy retryStrategy,
                            java.net.InetSocketAddress listenAddress)
        Parameters:
        eventLoopGroup - for both channel IO and processing
        factory - to create new Channel
        clientHandler - to log outgoing packets and handle incoming packets/responses
        retryStrategy - retry strategy for scheduling retries and timeouts
        listenAddress - local address to bind to