AXL RADIUS Server API V3

com.theorem.radserver3.module.leap
Class LEAPImpl

Object
  extended byLEAP
      extended byLEAPImpl

public class LEAPImpl
extends LEAP

Class to perform the LEAP (Lightweight EAP) exchange protocol for the RADIUS server.


Field Summary
 
Fields inherited from class LEAP
STATE_COMPLETED, STATE_INITIALIZE, STATE_PROCESS
 
Constructor Summary
LEAPImpl(AuthInfo auth)
          Constructor.
 
Method Summary
 void createIdentityFailure(AttributeList request, String userName)
          Create a failure if the Identity is unknown.
 int getState()
          Get the LEAP state.
 String getStateName()
          Get the current LEAP state name.
 void process(AuthInfo auth)
           
 void setIdentityRequestMessage(String identityMessage)
          Set the Identity request message.
 void setParameters(String userName, String identity, byte[] password)
          Set the LEAP initial parameters.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LEAPImpl

public LEAPImpl(AuthInfo auth)
         throws RADIUSException
Constructor.

Parameters:
auth - AuthInfo object.
Throws:
RADIUSException - if there's a problem accessing or using DES encoding.
Method Detail

createIdentityFailure

public void createIdentityFailure(AttributeList request,
                                  String userName)
                           throws AccessRejectException,
                                  EAPException
Create a failure if the Identity is unknown. This is used to signal to the client that the entity attempting authentication is unknown.

Parameters:
request - Request AttributeList.
userName - User-Name that was requested but not found.
Throws:
AccessRejectException - Always throws this.
EAPException - if there's a problem extracting the EAP-Message from the request attribute list.

getState

public int getState()
Get the LEAP state.

Returns:
The LEAP state.

getStateName

public String getStateName()
Get the current LEAP state name.

Returns:
LEAP current state name.

process

public void process(AuthInfo auth)
             throws EAPException,
                    AccessRejectException
Throws:
EAPException
AccessRejectException

setIdentityRequestMessage

public void setIdentityRequestMessage(String identityMessage)
Set the Identity request message. An optional parameter.

If a packet with a code of IDENTITY appear without a name you may send this text with the name request. Normally a system will send the Identity with the IDENTITY packet. If they are known to cause this extra work this value should be set.

Parameters:
identityMessage - Message to send to the client to request their identity. For example this could be "What's your name? ".

setParameters

public void setParameters(String userName,
                          String identity,
                          byte[] password)
                   throws EAPException
Set the LEAP initial parameters.

Parameters:
userName - The value to be used in the User-Name attribute which may include the realm.
identity - The name LEAP will use to identify the entity - must be the user name perhaps with realm information as well. This may be null if the identity will be the same as the User-Name.
password - Password.
Throws:
EAPException - if the userName is null or empty.

AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.