|
AXL Software | |||||||
| 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 |
ABINARY
The attribute is probably an 'abinary', Ascend's binary filter format - 8192. |
static int |
BYTE
The attribute is probably a 'byte', a one byte value - 16384. |
static int |
COMBO_IP
The attribute is probably either an ipaddr or a v6ipaddr value - 131072. |
static int |
DATE
The attribute is probably a date - 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 |
ETHER
The attribute is probably an 'ether' with the format of 16 octets: 'hh:hh:hh:hh:hh:hh' - 2048. |
static int |
IFID
The attribute is probably an 'ifid' - 8 octets in network byte order - 4096. |
static int |
INTEGER
The attribute is probably an integer - 1. |
static int |
IPADDRESS
The attribute is probably an IP Address (v4 - 16. |
static int |
IPV6ADDRESS
The attribute is probably an IPV6 Address - 512. |
static int |
IPV6PREFIX
The attribute is probably an IPV6 Prefix - 1024. |
static int |
OCTETS
The attribute is probably binary octets - 2. |
static int |
SHORT
The attribute is probably a 'short', a two byte integer value - 32768. |
static int |
STRING
The attribute is probably a string - 4. |
static int |
TLV
The attribute is probably a 'tlv' a tag/length/value value - 65536. |
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 ABINARY
public static final int BYTE
public static final int COMBO_IP
public static final int DATE
public static final int ENCRYPT1
public static final int ENCRYPT2
public static final int ENCRYPT3
public static final int ETHER
public static final int IFID
public static final int INTEGER
public static final int IPADDRESS
public static final int IPV6ADDRESS
public static final int IPV6PREFIX
public static final int OCTETS
public static final int SHORT
public static final int STRING
public static final int TLV
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 Software | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||