|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectLEAP
LEAPImpl
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 |
public LEAPImpl(AuthInfo auth)
throws RADIUSException
auth - AuthInfo object.
RADIUSException - if there's a problem accessing or using DES encoding.| Method Detail |
public void createIdentityFailure(AttributeList request,
String userName)
throws AccessRejectException,
EAPException
request - Request AttributeList.userName - User-Name that was requested but not found.
AccessRejectException - Always throws this.
EAPException - if there's a problem extracting the EAP-Message from the request attribute list.public int getState()
public String getStateName()
public void process(AuthInfo auth)
throws EAPException,
AccessRejectException
EAPException
AccessRejectExceptionpublic void setIdentityRequestMessage(String identityMessage)
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.
identityMessage - Message to send to the client to request their
identity. For example this could be "What's your name? ".
public void setParameters(String userName,
String identity,
byte[] password)
throws EAPException
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.
EAPException - if the userName is null or empty.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||