net.jradius.client.auth
Class RadiusAuthenticator

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

public abstract class RadiusAuthenticator
extends Object

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

Author:
David Bird

Field Summary
protected  RadiusAttribute classAttribute
           
protected  RadiusClient client
           
protected  RadiusAttribute password
           
protected  RadiusAttribute stateAttribute
           
protected  RadiusAttribute username
           
 
Constructor Summary
RadiusAuthenticator()
           
 
Method Summary
abstract  String getAuthName()
           
protected  byte[] getClassAttribute()
           
 RadiusClient getClient()
           
protected  byte[] getPassword()
           
protected  byte[] getStateAttribute()
           
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 setPassword(RadiusAttribute cleartextPassword)
           
 void setupRequest(RadiusClient c, RadiusPacket p)
           
 void setUsername(RadiusAttribute userName)
           
 
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

classAttribute

protected RadiusAttribute classAttribute

stateAttribute

protected RadiusAttribute stateAttribute
Constructor Detail

RadiusAuthenticator

public RadiusAuthenticator()
Method Detail

getAuthName

public abstract 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.

setUsername

public void setUsername(RadiusAttribute userName)

setPassword

public void setPassword(RadiusAttribute cleartextPassword)

getClassAttribute

protected byte[] getClassAttribute()

getStateAttribute

protected byte[] getStateAttribute()


Copyright © 2011 Coova Technologies, LLC, All Rights Reserved.