net.sf.jradius.standard
Class WISPrStandard

java.lang.Object
  extended by net.sf.jradius.standard.RadiusStandard
      extended by net.sf.jradius.standard.WISPrStandard

public class WISPrStandard
extends RadiusStandard

Implementation of the WISPr requirements for RADIUS packets as defined below:

   Attribute              Type     Au R Ac  (Au=Auth Req, R=Auth Reply, Ac=Acct Req)
 ------------------------------------------------------------------------------------
   User-Name              1 String  X   X User enters full NAI
   User-Password          2 String  X
   NAS-IP-Address         4 Ipaddr  X   X IP Address of the Access Gateway
   Service-Type           6 Integer X     Must be set to Login (1)
   Framed-IP-Address      8 Ipaddr  X   X IP Address of the User
   Reply-Message         18 String    X   Text of reject reason if present
   State                 24 String  X X
   Class                 25 String    X X
   Session-Timeout       27 Integer   X   Forced logout once timeout period
                                          reached (seconds)
   Idle-Timeout          28 Integer   X   Implicit logout inactivity timeout period
                                          (seconds)
   Called-Station-ID     30 String  X   X This field should contain the MAC
                                          address or other information identifying
                                          the Access Gateway
   NAS-ID                32 String  X   X
   Acct-Status-Type      40 Integer     X 1 = Start, 2 = Stop, 3 = Interim Update
   Acct-Delay-Time       41 Integer     X Delay (seconds) between Acctg Event
                                          and when Acct-Req sent (doesn't
                                          include estimated network transit time)
   Acct-Input-Octets     42 Integer     X
   Acct-Output-Octets    43 Integer     X
   Acct-Session-ID       44 String  X X X
   Acct-Session-Time     46 Integer     X Call duration in seconds (already
                                          compensated for idle timeout)
   Acct-Input-Packets    47 Integer     X
   Acct-Output-Packets   48 Integer     X
   Acct-Terminate-Cause  49 Integer     X 1 = Explicit Logoff, 4 = Idle Timeout,
                                          5 = Session Timeout, 6 = Admin Reset,
                                          9 = NAS Error, 10 = NAS Request,
                                          11 = NAS Reboot
   NAS-Port-Type         61 Integer X   X 15 = Ethernet, 19 = 802.11
   Acct-Interim-Interval 85 Integer   X   Interval (seconds) to send accounting
                                          updates
 ------------------------------------------------------------------------------------
 

Author:
David Bird

Constructor Summary
WISPrStandard()
           
 
Method Summary
 void checkPacket(RadiusPacket p, int[] ignore)
          Checks the packet for compliance with the implemented standard.
 java.lang.String getName()
           
 
Methods inherited from class net.sf.jradius.standard.RadiusStandard
checkMissing, checkPacket
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WISPrStandard

public WISPrStandard()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in class RadiusStandard
Returns:
Returns the name of the standard

checkPacket

public void checkPacket(RadiusPacket p,
                        int[] ignore)
                 throws StandardViolatedException
Description copied from class: RadiusStandard
Checks the packet for compliance with the implemented standard. If there are missing attributes, the StandardViolatedException is thrown containing a list of the missing attributes.

Specified by:
checkPacket in class RadiusStandard
Parameters:
p - RadiusPacket to be checked
ignore - Attribute types to ignore
Throws:
StandardViolatedException
See Also:
RadiusStandard.checkPacket(net.sf.jradius.packet.RadiusPacket)


Copyright © 2006 The JRadius Project, All Rights Reserved.