Package org.tinyradius.server.handler
Callback handlers that are invoked when a packet is received.
RequestHandler
is defined
so custom handlers do not have to be concerned with how netty handles packets
and serialization between Datagram and RadiusPacket
.
Basic implementations of Accounting and Access RequestHandlers are included for the most trivial use cases. A simple DeduplicatorHandler that returns null for duplicates is also included.
-
Interface Summary Interface Description RequestHandler<T extends RadiusPacket,S extends SecretProvider> -
Class Summary Class Description AcctHandler A reference implementation of AccountingRequest handler that responds to all Accounting-Request with standard Accounting-Response.AuthHandler Reference implementation of AccessRequest handler that returns Access-Accept/Reject depending on whetherAuthHandler.getUserPassword(String)
matches password in Access-Request.DeduplicatorHandler<T extends RadiusPacket> Handler that wraps around another handler and deduplicates requests, returning null if duplicate.ProxyRequestHandler RadiusServer handler that proxies packets to destination.