|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectLEAPCLIENT
LEAPCLIENTImpl
Class to perform the LEAP (Lightweight EAP) exchange protocol for the RADIUS server/
| Field Summary | |
byte |
LEAPVersion
|
static int |
NO_STATE
State - initial state, no state assigned - 0. |
static int |
SEND_SUCCESS
State - notification of success to end program - 8. |
| Constructor Summary | |
LEAPCLIENTImpl(RADIUSClient rc)
Constructor for the LEAP client. |
|
| Method Summary | |
boolean |
authenticate()
Authenticate using the LEAP protocol. |
byte[] |
getSessionKey()
Get the session key. |
void |
setCommonAttributes(AttributeList commonList)
Set attributes to be sent with each LEAP request. |
void |
setLEAPIdentity(String leapIdentity)
Set the User-Name attribute value. |
void |
setPassword(byte[] password)
Set the password to use for authentication. |
void |
setUserName(String userName)
Set the User-Name attribute value. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final byte LEAPVersion
public static final int NO_STATE
public static final int SEND_SUCCESS
| Constructor Detail |
public LEAPCLIENTImpl(RADIUSClient rc)
throws RADIUSException
rc - RADIUS Client.
RADIUSException - if there's a problem accessing DES encoding.| Method Detail |
public boolean authenticate()
throws ClientSendException,
SocketException,
ClientReceiveException,
EAPException
EAPException - for a number of EAP problems.
SocketException - if the client is unable to obtain a new socket during the session.
ClientReceiveException - if there's a problem receiving a packet.
ClientSendException - if there's a problem sending a packet.public byte[] getSessionKey()
public void setCommonAttributes(AttributeList commonList)
commonList - Common attributes to send with each LEAP request.public void setLEAPIdentity(String leapIdentity)
There are two 'names' associated with the LEAP protocol. One is the RADIUS User-Name value that may or may not have a 'realm' associated with it. A realm is used to direct the authentication to the proper machine. The other 'name' is the identity value associated with the EAP protcols. Realm information provided in the User-Name may not be appropriate and in this case can be provided without realm information..
If the EAP Identity and RADIUS User-Name are the same only one must be set.
leapIdentity - LEAP Identity value.public void setPassword(byte[] password)
password - Password.
The password should be encoded using UTF8 encoding.Util.toUTF8(byte[] b),
Util.toUTF8(String s)public void setUserName(String userName)
There are two 'names' associated with the LEAP protocol. One is the RADIUS User-Name value that may or may not have a 'realm' associated with it. A realm is used to direct the authentication to the proper machine. The other 'name' is the identity value associated with the EAP protcols. Realm information provided in the User-Name may not be appropriate and in this case can be provided without realm information..
If the EAP Identity and RADIUS User-Name are the same only one must be set.
userName - User-Name value.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||