net.jradius.client.auth
Class RadiusAuthenticator
java.lang.Object
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
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
classAttribute
protected RadiusAttribute classAttribute
stateAttribute
protected RadiusAttribute stateAttribute
RadiusAuthenticator
public RadiusAuthenticator()
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 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.
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.