net.sf.jradius.client.auth
Class RadiusAuthenticator

java.lang.Object
  extended by net.sf.jradius.client.auth.RadiusAuthenticator
Direct Known Subclasses:
CHAPAuthenticator, EAPAuthenticator, MSCHAPv1Authenticator, MSCHAPv2Authenticator, PAPAuthenticator

public abstract class RadiusAuthenticator
extends java.lang.Object

RADIUS Authentication Protocol Implementations. All Authenticators are extended from this abstract class.

Author:
David Bird

Field Summary
protected  RadiusClient client
           
protected  RadiusAttribute password
           
protected  RadiusAttribute username
           
 
Constructor Summary
RadiusAuthenticator()
           
 
Method Summary
abstract  java.lang.String getAuthName()
           
 RadiusClient getClient()
           
protected  byte[] getPassword()
           
protected  byte[] getUsername()
           
 void processChallenge(RadiusPacket request, RadiusPacket challenge)
          If the protocol has a request/challenge process, this function must be implemented.
abstract  void processRequest(RadiusPacket p)
           
 void setClient(RadiusClient client)
           
 void setupRequest(RadiusClient c, RadiusPacket p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

protected RadiusClient client

username

protected RadiusAttribute username

password

protected RadiusAttribute password
Constructor Detail

RadiusAuthenticator

public RadiusAuthenticator()
Method Detail

getAuthName

public abstract java.lang.String getAuthName()
Returns:
Returns the name(s) of the protocol(s) provided.

setupRequest

public void setupRequest(RadiusClient c,
                         RadiusPacket p)
                  throws RadiusException
Parameters:
c - The RadiusClient context being used
p - Setup the Authenticator with packet data
Throws:
RadiusException

processRequest

public abstract void processRequest(RadiusPacket p)
                             throws RadiusException
Parameters:
p - The RadiusPacket to be processed
Throws:
RadiusException

processChallenge

public void processChallenge(RadiusPacket request,
                             RadiusPacket challenge)
                      throws RadiusException
If the protocol has a request/challenge process, this function must be implemented.

Parameters:
request - The original AccessRequest RadiusPacket
challenge - The AccessChallenge packet
Throws:
RadiusException

getClient

public RadiusClient getClient()
Returns:
Returns the client.

setClient

public void setClient(RadiusClient client)
Parameters:
client - The client to set.

getUsername

protected byte[] getUsername()
Returns:
Returns the username.

getPassword

protected byte[] getPassword()
Returns:
Returns the password.


Copyright © 2006 The JRadius Project, All Rights Reserved.