|
RADIUS Client API (V3) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectEAPClient
Class to handle EAP information for a client.
| Field Summary | |
RADIUSClient |
radClient
|
| Constructor Summary | |
EAPClient(byte[] name,
InetAddress server,
int port,
String secret,
int timeout,
InetAddress nasIPAddress,
String nasIdentifier)
EAP client constructor. |
|
EAPClient(byte[] name,
RADIUSClient radClient,
InetAddress nasIPAddress,
String nasIdentifier)
EAP client constructor. |
|
EAPClient(RADIUSClient rc,
AttributeList commonList)
EAP client constructor. |
|
| Method Summary | |
void |
addAttributes(AttributeList list)
Add some attributes to be sent all the time. |
int |
createPacketId()
Generate a random packet identifier. |
void |
debug(boolean enable)
Enable client debugging. |
AttributeList |
getAttributes()
Get the server response attributes. |
EAPPacket |
getEAPPacket()
Get the EAP message packet in the response from the server. |
void |
logToDebug(String msg)
Log a message to the debug file or stdout if debugging hasn't been set up. |
void |
reset(byte[] name)
Reset the client for a new EAP request. |
int |
send(AttributeList requestList)
Perform an authentication with the given attributes. |
boolean |
setDebug(boolean debug)
Set debugging on or off. |
void |
setDebug(boolean debug,
String fileName)
Set debugging on or off. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public RADIUSClient radClient
| Constructor Detail |
public EAPClient(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.
public EAPClient(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 EAPClient(byte[] name,
InetAddress server,
int port,
String secret,
int timeout,
InetAddress nasIPAddress,
String nasIdentifier)
throws EAPException
name - User-Name attribute value.server - RADIUS server address.port - RADIUS server portsecret - RADIUS server shared secret.timeout - Packet round trip timeout in milliseconds.nasIPAddress - Client NAS-IP-Address value or null.nasIdentifier - Client NAS-Identifier value or null.
EAPException - if the server cannot be found.| Method Detail |
public final void reset(byte[] name)
throws EAPException
EAPException - if the client cannot be started or reset.public final void debug(boolean enable)
enable - True to enable debugging or false to disable.public final void addAttributes(AttributeList list)
list - Attribute list holding extra attributes.
public final int send(AttributeList requestList)
throws EAPException
requestList - AttributeList containing EAP-Message and Message-Authenticator
attributes.
EAPException - if there's a problem.public final AttributeList getAttributes()
public final EAPPacket getEAPPacket()
throws EAPException
EAPException - if there are no response attributes.public final int createPacketId()
public final void setDebug(boolean debug,
String fileName)
throws IOException
debug - Use true to enable debugging, false to disable debugging.fileName - Debugging information will be written to this file. If the file name is null
the standard output is used.
IOException - if there's a problem opening the debugging output.logToDebug()public final boolean setDebug(boolean debug)
debug - Use true to enable debugging, false to disable debugging.
PacketType.Access_BadPacketpublic final void logToDebug(String msg)
msg - Message to write.setDebug()
|
RADIUS Client API (V3) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||