Package org.tinyradius.io.server
Class RadiusServer
java.lang.Object
org.tinyradius.io.server.RadiusServer
- All Implemented Interfaces:
Closeable
,AutoCloseable
Implements a simple Radius server.
-
Constructor Summary
ConstructorsConstructorDescriptionRadiusServer
(io.netty.bootstrap.Bootstrap bootstrap, io.netty.channel.ChannelHandler accessHandler, io.netty.channel.ChannelHandler accountingHandler, InetSocketAddress accessSocket, InetSocketAddress accountingSocket) -
Method Summary
-
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 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
-
getAuthChannel
public io.netty.channel.Channel getAuthChannel() -
getAcctChannel
public io.netty.channel.Channel getAcctChannel() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-