org.aselect.authspserver.authsp.radius
Class AbstractRADIUSProtocolHandler

java.lang.Object
  extended by org.aselect.authspserver.authsp.radius.AbstractRADIUSProtocolHandler
All Implemented Interfaces:
IRADIUSProtocolHandler
Direct Known Subclasses:
RADIUSCHAPProtocolHandler, RADIUSPAPProtocolHandler

public abstract class AbstractRADIUSProtocolHandler
extends java.lang.Object
implements IRADIUSProtocolHandler

Abstract Radius Protocol Handler.

Description:
Abstract implementation of the Radius AuthSP Handler, which can be used as base for other implementations of the Radius Protocol Handler (CHAP/PAP)

Concurrency issues:
None

Author:
Alfa & Ariss

Field Summary
protected  boolean _bFullUid
          The complete user ID.
protected  int _iPort
          The radius server port.
protected  java.lang.String _sRadiusServer
          The radius server.
protected  java.lang.String _sSharedSecret
          The shared secret.
protected  java.lang.String _sUid
          The user ID.
protected  SystemLogger _systemLogger
          The logger for system entries.
 
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
AbstractRADIUSProtocolHandler()
           
 
Method Summary
abstract  java.lang.String authenticate(java.lang.String sPassword)
          Autehnticate a user with Radius.
 boolean init(java.lang.String sRadiusServer, int iPort, java.lang.String sSharedSecret, boolean bFullUid, java.lang.String sUid, SystemLogger systemLogger)
          Initializes the Radius Protocol Handler.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_sRadiusServer

protected java.lang.String _sRadiusServer
The radius server.


_iPort

protected int _iPort
The radius server port.


_sSharedSecret

protected java.lang.String _sSharedSecret
The shared secret.


_bFullUid

protected boolean _bFullUid
The complete user ID.


_sUid

protected java.lang.String _sUid
The user ID.


_systemLogger

protected SystemLogger _systemLogger
The logger for system entries.

Constructor Detail

AbstractRADIUSProtocolHandler

public AbstractRADIUSProtocolHandler()
Method Detail

init

public boolean init(java.lang.String sRadiusServer,
                    int iPort,
                    java.lang.String sSharedSecret,
                    boolean bFullUid,
                    java.lang.String sUid,
                    SystemLogger systemLogger)
Initializes the Radius Protocol Handler.

Specified by:
init in interface IRADIUSProtocolHandler
Returns:
true
See Also:
IRADIUSProtocolHandler.init(java.lang.String, int, java.lang.String, boolean, java.lang.String, org.aselect.system.logging.SystemLogger)

authenticate

public abstract java.lang.String authenticate(java.lang.String sPassword)
Autehnticate a user with Radius.

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


Copyright © 2008 SURFnet BV. All Rights Reserved.