All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jradius.dictionary.Attr_AcctAuthentic Maven / Gradle / Ivy

The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Thu, 5 Jan 2017 16:12:37 +0200

package net.jradius.dictionary;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

import net.jradius.packet.attribute.RadiusAttribute;
import net.jradius.packet.attribute.value.NamedValue;

/**
 * Attribute Name: Acct-Authentic
* Attribute Type: 45
* Value Type: NamedValue
* Possible Values:
*
    *
  • RADIUS (1) *
  • Local (2) *
  • Remote (3) *
  • Diameter (4) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_AcctAuthentic extends RadiusAttribute { public static final String NAME = "Acct-Authentic"; public static final long TYPE = 45; public static final long serialVersionUID = TYPE; public static final Long RADIUS = new Long(1L); public static final Long Local = new Long(2L); public static final Long Remote = new Long(3L); public static final Long Diameter = new Long(4L); @SuppressWarnings("serial") protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable { public Long[] knownValues = { new Long(1L),new Long(2L),new Long(3L),new Long(4L)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("RADIUS".equals(name)) return new Long(1L); if ("Local".equals(name)) return new Long(2L); if ("Remote".equals(name)) return new Long(3L); if ("Diameter".equals(name)) return new Long(4L); return null; } public String getNamedValue(Long value) { if (new Long(1L).equals(value)) return "RADIUS"; if (new Long(2L).equals(value)) return "Local"; if (new Long(3L).equals(value)) return "Remote"; if (new Long(4L).equals(value)) return "Diameter"; return null; } }; public static transient NamedValueMap map = null; public void setup() { attributeName = NAME; attributeType = 45; attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap())); } public Attr_AcctAuthentic() { setup(); } public Attr_AcctAuthentic(Serializable o) { setup(o); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy