Class RadiusServer



  • public class RadiusServer
    extends AbstractListener
    Implements a simple Radius server.
    • Constructor Summary

      Constructors 
      Constructor Description
      RadiusServer​(io.netty.channel.EventLoopGroup eventLoopGroup, io.netty.util.Timer timer, io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> factory, HandlerAdapter<? extends RadiusPacket,? extends SecretProvider> authHandler, HandlerAdapter<? extends RadiusPacket,? extends SecretProvider> acctHandler, java.net.InetSocketAddress authSocket, java.net.InetSocketAddress acctSocket)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.netty.channel.socket.DatagramChannel getAcctChannel​()  
      io.netty.channel.socket.DatagramChannel getAuthChannel​()  
      io.netty.util.concurrent.Future<java.lang.Void> start​()
      Initialize dependencies.
      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

      • RadiusServer

        public RadiusServer​(io.netty.channel.EventLoopGroup eventLoopGroup,
                            io.netty.util.Timer timer,
                            io.netty.channel.ChannelFactory<? extends io.netty.channel.socket.DatagramChannel> factory,
                            HandlerAdapter<? extends RadiusPacket,? extends SecretProvider> authHandler,
                            HandlerAdapter<? extends RadiusPacket,? extends SecretProvider> acctHandler,
                            java.net.InetSocketAddress authSocket,
                            java.net.InetSocketAddress acctSocket)
        Parameters:
        eventLoopGroup - for both channel IO and processing
        timer - for timing out if startup socket binding fails
        factory - to create new Channel
        authHandler - ChannelHandler to handle requests received on authSocket
        acctHandler - ChannelHandler to handle requests received on acctSocket
        authSocket - socket to listen on for auth requests
        acctSocket - socket to listen on for accounting requests
    • Method Detail

      • start

        public io.netty.util.concurrent.Future<java.lang.Void> start​()
        Description copied from class: AbstractListener
        Initialize dependencies.
        Specified by:
        start in class AbstractListener
        Returns:
        future completes when required resources have been set up.
      • stop

        public io.netty.util.concurrent.Future<java.lang.Void> stop​()
        Description copied from class: AbstractListener
        Shutdown and close resources.
        Specified by:
        stop in class AbstractListener
        Returns:
        future completes when resources shutdown
      • getAuthChannel

        public io.netty.channel.socket.DatagramChannel getAuthChannel​()
      • getAcctChannel

        public io.netty.channel.socket.DatagramChannel getAcctChannel​()