public class RadiusClientFactory
extends java.lang.Object
| Constructor and Description |
|---|
RadiusClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
net.jradius.client.RadiusClient |
newInstance()
Creates a new RADIUS client instance using factory configuration settings.
|
void |
setAccountingPort(int port)
Sets the RADIUS server accounting port.
|
void |
setAuthenticationPort(int port)
Sets the RADIUS server authentication port.
|
void |
setInetAddress(java.lang.String address)
RADIUS server network address.
|
void |
setSharedSecret(java.lang.String secret)
RADIUS server authentication shared secret.
|
void |
setSocketTimeout(int timeout)
Sets the RADIUS server UDP socket timeout.
|
public void setAccountingPort(int port)
port - Accounting port number.public void setAuthenticationPort(int port)
port - Authentication port number.public void setSocketTimeout(int timeout)
timeout - Timeout in seconds; 0 for no timeout.public void setInetAddress(java.lang.String address)
address - Network address as a string.public void setSharedSecret(java.lang.String secret)
secret - Shared secret.public net.jradius.client.RadiusClient newInstance()
throws java.io.IOException
java.io.IOException - In case the transport method encounters an error.