Package org.tinyradius.dictionary

Examples of org.tinyradius.dictionary.Dictionary


   * @param vendorId vendor ID or -1
   * @param attributeType attribute type
   * @return RadiusAttribute instance
   */
  public static RadiusAttribute createRadiusAttribute(int vendorId, int attributeType) {
    Dictionary dictionary = DefaultDictionary.getDefaultDictionary();
    return createRadiusAttribute(dictionary, vendorId, attributeType);
  }
View Full Code Here


   * used.
   * @param attributeType attribute type
   * @return RadiusAttribute instance
   */
  public static RadiusAttribute createRadiusAttribute(int attributeType) {
    Dictionary dictionary = DefaultDictionary.getDefaultDictionary();
    return createRadiusAttribute(dictionary, -1, attributeType);
  }
View Full Code Here

public class TestDictionary {

  public static void main(String[] args)
  throws Exception {
    InputStream source = new FileInputStream("test.dictionary");
    Dictionary dictionary = DictionaryParser.parseDictionary(source);
    AccessRequest ar = new AccessRequest("UserName", "UserPassword");
    ar.setDictionary(dictionary);
    ar.addAttribute("WISPr-Location-ID", "LocationID");
    ar.addAttribute(new IpAttribute(8, 1234567));
    System.out.println(ar);
View Full Code Here

TOP

Related Classes of org.tinyradius.dictionary.Dictionary

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.