net.sf.jradius.standard
Class RadiusStandard

java.lang.Object
  extended by net.sf.jradius.standard.RadiusStandard
Direct Known Subclasses:
IRAPStandard, WISPrStandard

public abstract class RadiusStandard
extends java.lang.Object

Interface for RADIUS Standards Checking

Author:
David Bird

Constructor Summary
RadiusStandard()
           
 
Method Summary
protected static void checkMissing(RadiusPacket p, java.util.List list, int[] check, int[] ignore)
          Check for missing attributes in a RadiusPacket
 void checkPacket(RadiusPacket p)
          Same as checkPacket(p, null)
abstract  void checkPacket(RadiusPacket p, int[] ignore)
          Checks the packet for compliance with the implemented standard.
abstract  java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiusStandard

public RadiusStandard()
Method Detail

getName

public abstract java.lang.String getName()
Returns:
Returns the name of the standard

checkPacket

public abstract void checkPacket(RadiusPacket p,
                                 int[] ignore)
                          throws StandardViolatedException
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.

Parameters:
p - RadiusPacket to be checked
ignore - Attribute types to ignore
Throws:
StandardViolatedException

checkPacket

public void checkPacket(RadiusPacket p)
                 throws StandardViolatedException
Same as checkPacket(p, null)

Parameters:
p - RadiusPacket to be checked
Throws:
StandardViolatedException

checkMissing

protected static void checkMissing(RadiusPacket p,
                                   java.util.List list,
                                   int[] check,
                                   int[] ignore)
Check for missing attributes in a RadiusPacket

Parameters:
p - RadiusPacket to be checked
list - list to append missing attributes to
check - attributes to look for
ignore - attributes to ignore


Copyright © 2006 The JRadius Project, All Rights Reserved.