Package net.sourceforge.jradiusclient

Examples of net.sourceforge.jradiusclient.RadiusAttribute


     
      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");
View Full Code Here


    }
   
    private void setRADIUSAttributes(RadiusPacket rp) throws IOException{
     
      Iterator attributes = rp.getAttributes().iterator();
      RadiusAttribute tempRa;
     
      log.info("Response Packet Attributes Table: ");
      log.info("\tValue\t\tType");
     
      while(attributes.hasNext()){
          tempRa = (RadiusAttribute)attributes.next();
          log.info("\t" + tempRa.getType() + "\t\t" + new String(tempRa.getValue()));
      }
     
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.jradiusclient.RadiusAttribute

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.