this.inetAddress = InetAddress.getByName(hostName);
}
public boolean authenticate(
final UsernamePasswordCredentials usernamePasswordCredentials) {
final RadiusClient radiusClient = getNewRadiusClient();
final AttributeList attributeList = new AttributeList();
attributeList.add(new Attr_UserName(usernamePasswordCredentials
.getUsername()));
attributeList.add(new Attr_UserPassword(usernamePasswordCredentials
.getPassword()));
final AccessRequest request = new AccessRequest(radiusClient,
attributeList);
try {
final RadiusPacket response = radiusClient.authenticate(request,
this.radiusAuthenticator, this.retries);
// accepted
if (response instanceof AccessAccept) {
LOG.debug("Authentication request suceeded for host:"