Class RadiusServer

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

public class RadiusServer
extends java.lang.Object
implements java.io.Closeable
Implements a simple Radius server.
  • Constructor Summary

    Constructors 
    Constructor Description
    RadiusServer​(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler accessHandler, io.netty.channel.ChannelHandler accountingHandler, java.net.InetSocketAddress accessSocket, java.net.InetSocketAddress accountingSocket)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    io.netty.channel.Channel getAcctChannel()  
    io.netty.channel.Channel getAuthChannel()  
    io.netty.util.concurrent.Future<java.lang.Void> isReady()  

    Methods inherited from class java.lang.Object

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

    • RadiusServer

      public RadiusServer​(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler accessHandler, io.netty.channel.ChannelHandler accountingHandler, java.net.InetSocketAddress accessSocket, java.net.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<java.lang.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 java.lang.AutoCloseable
      Specified by:
      close in interface java.io.Closeable