public RadiusLoginHandler(String name,
String password,
String clientIP,
String callingStationID,
String radiusHostname,
String sharedSecret,
int authPort,
int acctPort,
int retries,
int timeout) {
if (name == null || password == null || clientIP == null) {
throw new IllegalArgumentException("Arguments cannont be null");
}
this.name = name;
this.password = password;
this.clientIP = clientIP;
this.callingStationID = callingStationID;
this.hostName = radiusHostname;
this.sharedSecret = sharedSecret;
this.authPort = authPort;
this.acctPort = acctPort;
this.numRetries = retries;
this.timeout = timeout;
}
Throws:
java.lang.IllegalArgumentException - if any param is null
|