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 accessHandler, io.netty.channel.ChannelHandler accountingHandler, InetSocketAddress accessSocket, InetSocketAddress accountingSocket)
      Parameters:
      bootstrap - bootstrap with channel class and eventLoopGroup set up
      accessHandler - ChannelHandler to handle requests received on authSocket
      accountingHandler - ChannelHandler to handle requests received on acctSocket
      accessSocket - socket to listen on for auth requests
      accountingSocket - socket to listen on for accounting requests
  • Method Details

    • isReady

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

      public io.netty.channel.Channel getAuthChannel()
    • getAcctChannel

      public io.netty.channel.Channel getAcctChannel()
    • close

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