Class RadiusServer

java.lang.Object
org.tinyradius.io.server.RadiusServer
All Implemented Interfaces:
Closeable, AutoCloseable

public class RadiusServer extends Object implements Closeable
Implements a simple Radius server.
  • Constructor Details

    • RadiusServer

      public RadiusServer(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler handler1, io.netty.channel.ChannelHandler handler2, InetSocketAddress socket1, InetSocketAddress socket2)
      Parameters:
      bootstrap - bootstrap with channel class and eventLoopGroup set up
      handler1 - ChannelHandler to handle requests received on socket1
      handler2 - ChannelHandler to handle requests received on socket2
      socket1 - socket to listen on
      socket2 - socket to listen on
    • RadiusServer

      public RadiusServer(io.netty.bootstrap.Bootstrap bootstrap, List<io.netty.channel.ChannelHandler> channelHandlers, List<InetSocketAddress> socketAddresses)
      Parameters:
      bootstrap - bootstrap with channel class and eventLoopGroup set up
      channelHandlers - list of channelHandlers to handle requests
      socketAddresses - list of socketAddresses to bind channelHandlers to, must be same length
  • Method Details

    • isReady

      public io.netty.util.concurrent.Future<Void> isReady()
    • getChannels

      public List<io.netty.channel.Channel> getChannels()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable