try{
log.info("Entering RADIUS Validation...");
RadiusPacket accessRequest = new RadiusPacket(RadiusPacket.ACCESS_REQUEST);
RadiusAttribute userNameAttribute;
userNameAttribute = new RadiusAttribute(RadiusAttributeValues.USER_NAME, radUser.getBytes());
accessRequest.setAttribute(userNameAttribute);
accessRequest.setAttribute(new RadiusAttribute(RadiusAttributeValues.USER_PASSWORD, radPass.getBytes()));
RadiusPacket accessResponse = rc.authenticate(accessRequest);
switch(accessResponse.getPacketType()){
case RadiusPacket.ACCESS_ACCEPT:
log.debug("User " + radUser + " validated by RADIUS server");