|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectEAPClient
EAPMD5Client
Class to handle EAP MD5 authentication.
| Field Summary |
| Fields inherited from class EAPClient |
radClient |
| Constructor Summary | |
EAPMD5Client(byte[] name,
InetAddress server,
int port,
String secret,
int timeout,
InetAddress nasIPAddress,
String nasIdentifier)
EAP MD5 client constructor. |
|
EAPMD5Client(byte[] name,
RADIUSClient radClient,
InetAddress nasIPAddress,
String nasIdentifier)
EAP MD5 client constructor. |
|
EAPMD5Client(RADIUSClient rc,
AttributeList commonList)
EAP MD5 client constructor. |
|
| Method Summary | |
boolean |
authenticate(byte[] password)
Perform an authentication with the name given to the constructor. |
boolean |
authenticate(byte[] name,
byte[] password)
Perform the EAP MD5 authethentication with a new name. |
void |
setAttributes(AttributeList local)
Add local attributes to the EAP transactions. |
| Methods inherited from class EAPClient |
addAttributes, createPacketId, debug, getAttributes, getEAPPacket, logToDebug, reset, send, setDebug, setDebug |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EAPMD5Client(byte[] name,
InetAddress server,
int port,
String secret,
int timeout,
InetAddress nasIPAddress,
String nasIdentifier)
throws EAPException
name - User-Name attribute value.nasIPAddress - Client NAS-IP-Address value or null.nasIdentifier - Client NAS-Identifier value or null.server - RADIUS server address.port - RADIUS server portsecret - RADIUS server shared secret.timeout - Packet round trip timeout in milliseconds.
EAPException - if the server cannot be found.
public EAPMD5Client(byte[] name,
RADIUSClient radClient,
InetAddress nasIPAddress,
String nasIdentifier)
throws EAPException
name - User-Name attribute value.radClient - Existing RADIUSClient.nasIPAddress - Client NAS-IP-Address value or null.nasIdentifier - Client NAS-Identifier value or null.
EAPException - if the server cannot be found.
public EAPMD5Client(RADIUSClient rc,
AttributeList commonList)
throws EAPException
rc - RADIUSClient.commonList - List of common attributes (User-Name, NAS-IP-Address, NAS-Identifier
and so on).
EAPException - if the server cannot be found.| Method Detail |
public boolean authenticate(byte[] password)
throws EAPException
password -
EAPException - if there is a problem during authentication.
public boolean authenticate(byte[] name,
byte[] password)
throws EAPException
name - EAP Identity.password - Authentication password.
EAPException - if there is a problem during authentication.public void setAttributes(AttributeList local)
These must not include User-Name, NAS-IP-Address, NAS-Identifier, Message-Authenticator, nor EAP-Message which are included automatically.
This list will replace any local attributes previously set by this method.
local - Locally added attributes.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||