|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectAttributeDataType
Class to guess at the data type in a given attribute. The choices will be INTEGER, OCTETS, STRING, DATE, and IPADDRESS Some attributes will have OR'd values: TUNNEL can be OR'd with any value.
| Field Summary | |
static int |
DATE
The attribute is probably time - 8. |
static int |
ENCRYPT1
The attribute uses encryption type 1 -PAP encoding (can be OR'd with other values) - 64. |
static int |
ENCRYPT2
The attribute uses encryption type 2 - SALT encoding (can be OR'd with other values) - 128. |
static int |
ENCRYPT3
The attribute uses encryption type 3 - Ascend encoding (can be OR'd with other values) - 256. |
static int |
INTEGER
The attribute is probably an integer - 1. |
static int |
IPADDRESS
The attribute is probably an IP Address (v4 or V6) - 16. |
static int |
OCTETS
The attribute is probably binary octets - 2. |
static int |
STRING
The attribute is probably a string - 4. |
static int |
TUNNEL
The attribute is a tunnel attribute (can be OR'd with other values) - 32. |
static int |
UNKNOWN
The attribute is unknown - 0. |
| Constructor Summary | |
AttributeDataType()
|
|
| Method Summary | |
static void |
addDictionary(RADIUSDictionary dict)
Add a dictionary to the Attribute Value class. |
static int |
getDataType(int tag)
Get an attribute data type based on the attribute tag. |
static int |
getDataType(int vendorId,
int tag)
Get an attribute data type based on the attribute tag. |
static String |
getDataTypeName(int dataType)
Get an attribute data type based on the attribute tag. |
static void |
main(String[] a)
|
static void |
setDataType(int attributeTag,
int dataType)
Set an attribute to a specific data type. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DATE
public static final int ENCRYPT1
public static final int ENCRYPT2
public static final int ENCRYPT3
public static final int INTEGER
public static final int IPADDRESS
public static final int OCTETS
public static final int STRING
public static final int TUNNEL
public static final int UNKNOWN
| Constructor Detail |
public AttributeDataType()
| Method Detail |
public static void addDictionary(RADIUSDictionary dict)
dict - Dictionary.public static int getDataType(int tag)
tag - Attribute type, E.g. Attribute.User_Name
public static int getDataType(int vendorId,
int tag)
tag - Attribute type, E.g. Attribute.User_Name
public static String getDataTypeName(int dataType)
dataType - Attribute data type, e.g. the value INTEGER.
public static void main(String[] a)
public static void setDataType(int attributeTag,
int dataType)
attributeTag - Attribute type, E.g. Attribute.User_Name.dataType - Set to one of the data types, E.g. STRING.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||