public class TestProxy extends RadiusProxy
| 构造器和说明 |
|---|
TestProxy() |
| 限定符和类型 | 方法和说明 |
|---|---|
RadiusEndpoint |
getProxyServer(RadiusPacket packet,
RadiusEndpoint client)
This method must be implemented to return a RadiusEndpoint
if the given packet is to be proxied.
|
String |
getSharedSecret(InetSocketAddress client)
Returns the shared secret used to communicate with the client with the
passed IP address or null if the client is not allowed at this server.
|
String |
getUserPassword(String userName)
Returns the password of the passed user.
|
static void |
main(String[] args) |
getProxyPort, getProxySocket, handlePacket, proxyPacket, proxyPacketReceived, setProxyPort, setSocketTimeout, start, stopaccessRequestReceived, accountingRequestReceived, copyProxyState, getAcctPort, getAcctSocket, getAuthPort, getAuthSocket, getDuplicateInterval, getListenAddress, getSocketTimeout, isPacketDuplicate, listen, listenAcct, listenAuth, makeDatagramPacket, makeRadiusPacket, setAcctPort, setAuthPort, setDuplicateInterval, setListenAddress, startpublic RadiusEndpoint getProxyServer(RadiusPacket packet, RadiusEndpoint client)
RadiusProxygetProxyServer 在类中 RadiusProxypacket - the packet in questionclient - the client endpoint the packet originated from
(containing the address, port number and shared secret)public String getSharedSecret(InetSocketAddress client)
RadiusServergetSharedSecret 在类中 RadiusServerclient - IP address and port number of clientpublic String getUserPassword(String userName)
RadiusServergetUserPassword 在类中 RadiusServeruserName - user namepublic static void main(String[] args)
Copyright © 2016. All rights reserved.