|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectReplay
Class to replay an Access-Request packet suitable for extraction by PacketDump.
Usage: Replay filename server [port] secretThe port is optional and defaults to 1812.
The file Replay uses can take packets extracted from the debug log of the form:
<82> -------------------------- Packet About to be Sent ------------------------ <82> Address: 127.0.0.1:1574 Packet Length: 34 Type: Access-Accept(2) Cut below this line and place it in a text file. ********* 02 52 00 22 1F D7 2B 1C - 10 66 43 16 98 99 F6 19 .R."..+. - .fC..... 72 E9 99 09 0C 06 00 00 - 04 00 12 08 48 6F 77 64 r....... - ....Howd 79 2E 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 y....... - ........Please see
DumpPacket for additional formats Replay will accept.
Replay will not play multiple packets in a single text file.
Servers that detect duplicate packets may reject repeated replay attempts that are run frequently.
| Constructor Summary | |
Replay(InetAddress server,
int port,
String secret,
int timeout)
Constructor to set up the radius client for a packet replay. |
|
| Method Summary | |
int |
getError()
Retrieve the error number. |
String |
getErrorString()
Retrieve the error string |
static void |
main(String[] args)
Main method for standalone operation. |
void |
reset()
Reset the client for a new replay. |
int |
send(byte[] packetData)
Send the raw packet data. |
void |
setDebug(boolean enable)
Enable or disable debugging output from the client. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Replay(InetAddress server,
int port,
String secret,
int timeout)
throws SocketException
server - RADIUS Server address.port - port number for packet replay.secret - Shared secret.timeout - Packet time out in milliseconds.| Method Detail |
public int getError()
throws SocketException
RADIUSClient for the error numbers.
SocketException
public String getErrorString()
throws SocketException
SocketExceptionpublic static void main(String[] args)
args - List of arguments as follows:
public void reset()
throws SocketException
SocketException
public int send(byte[] packetData)
throws ClientSendException,
ClientReceiveException
packetData - Raw RADIUS packet.
ClientSendException
ClientReceiveExceptionpublic void setDebug(boolean enable)
enable - True to enable debugging.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||