|
RADIUS Client API (V3) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectAV
Class holding attribute integer value field enumerations.
For example the field values for the Termination-Action attribute are Echo (0) and RADIUS-Request (1).
This class also associates string names to the values for some attribute enumerations
using the static lookup() method.
AttributeList list = new AttributeList();
list.addAttribute(Attribute.Acct_Status_Type, AV.Acct_Status_Type.Start);
int value = list.getInt(Attribute.Acct_Status_Type);
System.out.println("Attribute value is " +
AV.lookup(Attribute.Acct_Status_Type, value));
This will print: Attribute value is Start
| Nested Class Summary | |
static class |
AV.Acct_Authentic
Acct-Authentic values. |
static class |
AV.Acct_Status_Type
Acct-Status-Type values. |
static class |
AV.Acct_Terminate_Cause
Acct-Terminate-Cause values. |
static class |
AV.ARAP_Zone_Access
ARAP-Zone-Access values. |
static class |
AV.Error_Cause
Error-Cause values. |
static class |
AV.Framed_Compression
Framed-Compression values. |
static class |
AV.Framed_Protocol
Framed-Protocol values. |
static class |
AV.Framed_Routing
Framed-Routing values. |
static class |
AV.Login_Service
Login-Service values. |
static class |
AV.NAS_Port_Type
NAS-Port-Type values. |
static class |
AV.Service_Type
Service-Type values. |
static class |
AV.Termination_Action
Termination-Action values. |
static class |
AV.Tunnel_Medium_Type
Tunnel-Medium values. |
static class |
AV.Tunnel_Type
Tunnel-Type values. |
| Constructor Summary | |
AV()
Default constructor; |
|
| Method Summary | |
static void |
addDictionary(RADIUSDictionary dict)
Add a dictionary to the Attribute Value class. |
static int[] |
getAllValues(int tag)
Get all values for an attribute. |
static int[] |
getAllValues(int vendorId,
int tag)
Get all values for an attribute. |
static String |
lookup(int attribute,
int value)
Look up the name for an Attribute / Int Value pair. |
static String |
lookup(int vendorId,
int attribute,
int value)
Look up the name for an Attribute / Int Value pair. |
static int |
lookup(int attribute,
String value)
Look up the integer value for an Attribute / name pair. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AV()
| Method Detail |
public static String lookup(int attribute,
int value)
// This returns "PPP". String x = AV.lookup(Attribute.Framed_Protocol, 1);
attribute - The attribute tag value.value - The integer data value.
public static String lookup(int vendorId,
int attribute,
int value)
// This returns "PPP". String x = AV.lookup(Attribute.Framed_Protocol, 1);
vendorId - Vendor Id.attribute - The attribute tag value.value - The integer data value.
public static void addDictionary(RADIUSDictionary dict)
dict - Dictionary.
public static int lookup(int attribute,
String value)
// This returns 1. int x = AV.lookup(Attribute.Framed_Protocol, "PPP");
attribute - The attribute tag value.value - The string (human readable) value of the attribute integer value.
public static int[] getAllValues(int tag)
tag - Attribute tag.
public static int[] getAllValues(int vendorId,
int tag)
vendorId - Vendor Id.tag - Attribute tag.
|
RADIUS Client API (V3) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||