public class UDPClientTransport extends RadiusClientTransport
| Modifier and Type | Field and Description |
|---|---|
protected DatagramChannel |
channel |
static int |
defaultAcctPort |
static int |
defaultAuthPort |
protected DatagramSocket |
socket |
acctPort, authPort, defaultTimeout, localInetAddress, radiusClient, remoteInetAddress, sharedSecret, socketTimeout, statusListener| Constructor and Description |
|---|
UDPClientTransport() |
UDPClientTransport(DatagramSocket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected RadiusResponse |
receive(RadiusRequest req) |
protected void |
send(RadiusRequest req,
int attempt) |
void |
setSocketTimeout(int timeout) |
generateMessageAuthenticator, getAcctPort, getAuthPort, getLocalInetAddress, getRadiusClient, getRemoteInetAddress, getSharedSecret, getSocketTimeout, sendReceive, setAcctPort, setAuthPort, setLocalInetAddress, setRadiusClient, setRemoteInetAddress, setSharedSecret, setStatusListener, verifyAuthenticator, verifyAuthenticator, verifyAuthenticator, verifyMessageAuthenticator, verifyMessageAuthenticator, verifyMessageAuthenticatorpublic static final int defaultAuthPort
public static final int defaultAcctPort
protected DatagramChannel channel
protected DatagramSocket socket
public UDPClientTransport(DatagramSocket socket)
public UDPClientTransport()
throws IOException
IOExceptionpublic void close()
close in class RadiusClientTransportprotected void send(RadiusRequest req, int attempt) throws Exception
send in class RadiusClientTransportExceptionprotected RadiusResponse receive(RadiusRequest req) throws Exception
receive in class RadiusClientTransportExceptionpublic void setSocketTimeout(int timeout)
setSocketTimeout in class RadiusClientTransporttimeout - The socket timeout (in seconds)Copyright © 2017. All rights reserved.