net.sf.jradius.client.auth
Class RadiusAuthenticator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected RadiusClient client
username
protected RadiusAttribute username
password
protected RadiusAttribute password
RadiusAuthenticator
public RadiusAuthenticator()
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 usedp
- 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 RadiusPacketchallenge
- 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.