AXL RADIUS Server API V3

com.theorem.radserver3
Class NASCallBack

Object
  extended byNASCallBack

public abstract class NASCallBack
extends Object

Abstract class for handling packets that don't have a valid NAS (Network Access Server) entry. This class is instantiated once and the methods are called asynchronously from the server

See Also:
NASCallBackFactory

Constructor Summary
NASCallBack()
           
 
Method Summary
abstract  void logs(LogImpl svrLog, LogImpl dbgLog)
          Connects the implementation to the server logs.
abstract  NAS unknownNAS(NASInfo pktInfo)
          Called when a packet arrives from an unknown NAS.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NASCallBack

public NASCallBack()
Method Detail

logs

public abstract void logs(LogImpl svrLog,
                          LogImpl dbgLog)
Connects the implementation to the server logs. The logging classes are made available to the implementation for reporting this and that. These classes are defined in the RADIUSServer class. This method will be called when the authentication server is started.

Parameters:
svrLog - Server log class
dbgLog - Debug log class
See Also:
RADIUSServer

unknownNAS

public abstract NAS unknownNAS(NASInfo pktInfo)
Called when a packet arrives from an unknown NAS.

It's possible to create a new NAS entry for the packet and allow the packet to be processed. This method will not place the NAS entry in the server NAS table (RADIUSServer.addNAS(com.theorem.radserver3.NAS)). To do this use NASInfo.addNAS(com.theorem.radserver3.NAS) to add a NAS entry to the RADIUSServer's list otherwise the returned NAS object will only be used for the current packet.

If the returned NAS object is malformed the results are undefined. The NAS information provided by PacketInfo.getNAS() is guaranteed to be bogus when this method is called.

Parameters:
pktInfo - PacketInfo object containing information about the packet.
Returns:
a NAS object to use for this packet. If null is returned the packet will be dropped as if there was no legitimate NAS.

AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.