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

net.jradius.dictionary.vsa_usr.Attr_USRAuthMode Maven / Gradle / Ivy

// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Fri, 29 Nov 2013 13:24:47 +0000

package net.jradius.dictionary.vsa_usr;

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

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

/**
 * Attribute Name: USR-Auth-Mode
* Attribute Type: 26
* Vendor Id: 429
* VSA Type: 0xf003
* Value Type: NamedValue
* Possible Values:
*
    *
  • Auth-3Com (0) *
  • Auth-Ace (1) *
  • Auth-Safeword (2) *
  • Auth-UNIX-PW (3) *
  • Auth-Defender (4) *
  • Auth-TACACSP (5) *
  • Auth-Netware (6) *
  • Auth-Skey (7) *
  • Auth-EAP-Proxy (8) *
  • Auth-UNIX-Crypt (9) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_USRAuthMode extends VSAttribute { public static final String NAME = "USR-Auth-Mode"; public static final int VENDOR_ID = 429; public static final int VSA_TYPE = 0xf003; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long Auth3Com = new Long(0L); public static final Long AuthAce = new Long(1L); public static final Long AuthSafeword = new Long(2L); public static final Long AuthUNIXPW = new Long(3L); public static final Long AuthDefender = new Long(4L); public static final Long AuthTACACSP = new Long(5L); public static final Long AuthNetware = new Long(6L); public static final Long AuthSkey = new Long(7L); public static final Long AuthEAPProxy = new Long(8L); public static final Long AuthUNIXCrypt = new Long(9L); protected class NamedValueMap implements NamedValue.NamedValueMap { public Long[] knownValues = { new Long(0L),new Long(1L),new Long(2L),new Long(3L),new Long(4L),new Long(5L),new Long(6L),new Long(7L),new Long(8L),new Long(9L)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("Auth-3Com".equals(name)) return new Long(0L); if ("Auth-Ace".equals(name)) return new Long(1L); if ("Auth-Safeword".equals(name)) return new Long(2L); if ("Auth-UNIX-PW".equals(name)) return new Long(3L); if ("Auth-Defender".equals(name)) return new Long(4L); if ("Auth-TACACSP".equals(name)) return new Long(5L); if ("Auth-Netware".equals(name)) return new Long(6L); if ("Auth-Skey".equals(name)) return new Long(7L); if ("Auth-EAP-Proxy".equals(name)) return new Long(8L); if ("Auth-UNIX-Crypt".equals(name)) return new Long(9L); return null; } public String getNamedValue(Long value) { if (new Long(0L).equals(value)) return "Auth-3Com"; if (new Long(1L).equals(value)) return "Auth-Ace"; if (new Long(2L).equals(value)) return "Auth-Safeword"; if (new Long(3L).equals(value)) return "Auth-UNIX-PW"; if (new Long(4L).equals(value)) return "Auth-Defender"; if (new Long(5L).equals(value)) return "Auth-TACACSP"; if (new Long(6L).equals(value)) return "Auth-Netware"; if (new Long(7L).equals(value)) return "Auth-Skey"; if (new Long(8L).equals(value)) return "Auth-EAP-Proxy"; if (new Long(9L).equals(value)) return "Auth-UNIX-Crypt"; return null; } }; public static NamedValueMap map = null; public void setup() { attributeName = NAME; attributeType = 26; vendorId = VENDOR_ID; vsaAttributeType = VSA_TYPE; setFormat("4,0"); attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap())); } public Attr_USRAuthMode() { setup(); } public Attr_USRAuthMode(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy