org.aselect.authspserver.authsp.radius
Class RADIUSCHAPProtocolHandler

java.lang.Object
  extended by org.aselect.authspserver.authsp.radius.AbstractRADIUSProtocolHandler
      extended by org.aselect.authspserver.authsp.radius.RADIUSCHAPProtocolHandler
All Implemented Interfaces:
IRADIUSProtocolHandler

public class RADIUSCHAPProtocolHandler
extends AbstractRADIUSProtocolHandler

The Radius Protocol Handler which handles the Radius CHAP requests.

Description:
This Radius Protocol handler handles Authentication requests using Radius CHAP

Concurrency issues:
None

Author:
Alfa & Ariss

Field Summary
 
Fields inherited from class org.aselect.authspserver.authsp.radius.AbstractRADIUSProtocolHandler
_bFullUid, _iPort, _sRadiusServer, _sSharedSecret, _sUid, _systemLogger
 
Fields inherited from interface org.aselect.authspserver.authsp.radius.IRADIUSProtocolHandler
ACCESS_ACCEPT, ACCESS_REJECT, ACCESS_REQUEST, MAX_RADIUS_PACKET_SIZE, RADIUS_ATTRIBUTE_TYPE_CHAP_CHALLENGE, RADIUS_ATTRIBUTE_TYPE_CHAP_PASSWORD, RADIUS_ATTRIBUTE_TYPE_USER_NAME, RADIUS_ATTRIBUTE_TYPE_USER_PASSWORD, RADIUS_PORT
 
Constructor Summary
RADIUSCHAPProtocolHandler()
           
 
Method Summary
 java.lang.String authenticate(java.lang.String sPassword)
          .
 void composeRequest(java.lang.String sPassword, java.net.DatagramPacket oRADIUSPacket)
          This methods composes a RADIUS access-request packet and sends it to the RADIUS Server.
 void handleResponse(java.net.DatagramPacket oRADIUSPacket)
          This methods handles the response comming from the Radius Server.
 
Methods inherited from class org.aselect.authspserver.authsp.radius.AbstractRADIUSProtocolHandler
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RADIUSCHAPProtocolHandler

public RADIUSCHAPProtocolHandler()
Method Detail

authenticate

public java.lang.String authenticate(java.lang.String sPassword)
.

Specified by:
authenticate in interface IRADIUSProtocolHandler
Specified by:
authenticate in class AbstractRADIUSProtocolHandler
Returns:
Result Code
See Also:
IRADIUSProtocolHandler.authenticate(java.lang.String)

composeRequest

public void composeRequest(java.lang.String sPassword,
                           java.net.DatagramPacket oRADIUSPacket)
                    throws java.lang.Exception
This methods composes a RADIUS access-request packet and sends it to the RADIUS Server.

Parameters:
sPassword -
oRADIUSPacket -
Throws:
java.lang.Exception

handleResponse

public void handleResponse(java.net.DatagramPacket oRADIUSPacket)
This methods handles the response comming from the Radius Server.

Parameters:
oRADIUSPacket -


Copyright © 2008 SURFnet BV. All Rights Reserved.