AXL RADIUS Server API V3

com.theorem.radserver3
Class NASInfo

Object
  extended byPacketInfo
      extended byNASInfo

public final class NASInfo
extends PacketInfo

Class to pass NAS (RADIUS Client) information to a NASCallBack. The NASCallBack is used to dynamically accept or reject unknown clients.


Field Summary
 
Fields inherited from class PacketInfo
AUTH_LENGTH, AUTH_STATE_OBJECT
 
Method Summary
 void addNAS(NAS nas)
          Add a NAS entry to the RADIUS Server tables..
 NAS[] getNASList()
          Get the current list of NAS's.
 boolean isInNetwork(InetAddress nas, InetAddress mask)
          Filter based on net work mask.
 void removeNAS(NAS nas)
          Remove a NAS entry from the RADIUS server tables.
 
Methods inherited from class PacketInfo
addProxyTarget, appendResponseAttributes, cmp, decode, encode, fromAccountingPort, fromAuthenticationPort, getAuthenticator, getDatagram, getDecodedUserPassword, getHostRealm, getMaximumPacketSize, getMessageID, getModule, getName, getNAS, getPacketID, getPacketTypeName, getPrefix, getProxyClient, getProxyStateAttributesLength, getProxyTargetByRealm, getProxyTargets, getRADIUSServer, getRealm, getRealmInfo, getRealmList, getRequestAttributeList, getRequestAttributes, getRequestType, getRequestTypeName, getResponseAttributeList, getResponseType, getResponseTypeName, getSecret, getServerName, getSourceAddress, getSourcePort, getStateObject, getUserName, getUserPassword, removeProxyTarget, sendV2Trap, setResponseAttributes, setResponseAttributes, setResponseType, setStateObject, translateProxyId, trim
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addNAS

public void addNAS(NAS nas)
            throws RADIUSServerException
Add a NAS entry to the RADIUS Server tables.. This may be called at any time, before or after starting the server.

Parameters:
nas - NAS class with information for this NAS
Throws:
RADIUSServerException - if there's a problem creating the NAS
See Also:
NAS, removeNAS(com.theorem.radserver3.NAS)

getNASList

public NAS[] getNASList()
Get the current list of NAS's.

Returns:
Current client NAS list.

isInNetwork

public boolean isInNetwork(InetAddress nas,
                           InetAddress mask)
Filter based on net work mask. For example the mask "192.168.1.0" will return true for a machine at 192.168.1.25 but false for a machine at "10.10.10.3.

Parameters:
nas - NAS (source) address of the packet.
mask - Network mask for comparison.
Returns:
If the IP address fits the network mask return true.

removeNAS

public void removeNAS(NAS nas)
               throws RADIUSServerException
Remove a NAS entry from the RADIUS server tables. This may be called at any time, before or after starting the server.

Parameters:
nas - The NAS to remove.
Throws:
RADIUSServerException - if SNMP isn't set up.
See Also:
NAS, addNAS(com.theorem.radserver3.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.