Package org.tinyradius.io.server
Class RadiusServer
java.lang.Object
org.tinyradius.io.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()
-
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 upaccessHandler
- ChannelHandler to handle requests received on authSocketaccountingHandler
- ChannelHandler to handle requests received on acctSocketaccessSocket
- socket to listen on for auth requestsaccountingSocket
- 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 interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
-