public class RADIUSAttribute
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected byte |
length |
static byte |
RADIUS_ATTR_ACCT_SESSION_ID |
static byte |
RADIUS_ATTR_CALLING_STATION_ID |
static byte |
RADIUS_ATTR_EAP_MESSAGE |
static byte |
RADIUS_ATTR_FRAMED_MTU |
static byte |
RADIUS_ATTR_MESSAGE_AUTH |
static byte |
RADIUS_ATTR_NAS_ID |
static byte |
RADIUS_ATTR_NAS_IP |
static byte |
RADIUS_ATTR_NAS_PORT |
static byte |
RADIUS_ATTR_NAS_PORT_ID |
static byte |
RADIUS_ATTR_NAS_PORT_TYPE |
static byte |
RADIUS_ATTR_STATE |
static byte |
RADIUS_ATTR_USERNAME |
static byte |
RADIUS_ATTR_VENDOR_SPECIFIC |
protected byte |
type |
protected byte[] |
value |
Constructor and Description |
---|
RADIUSAttribute()
Default constructor.
|
RADIUSAttribute(byte type,
byte length,
byte[] value)
Constructs a RADIUS attribute with the give type, length and value.
|
Modifier and Type | Method and Description |
---|---|
byte |
getLength()
Gets the attribute length.
|
byte |
getType()
Gets the attribute type.
|
byte[] |
getValue()
Gets the attribute value.
|
boolean |
isValidType()
Checks if the attribute type is valid.
|
RADIUSAttribute |
setLength(byte length)
Sets the attribute length.
|
RADIUSAttribute |
setType(byte type)
Sets the attribute type.
|
RADIUSAttribute |
setValue(byte[] value)
Sets the attribute value.
|
java.lang.String |
toString() |
protected byte type
protected byte length
protected byte[] value
public static final byte RADIUS_ATTR_USERNAME
public static final byte RADIUS_ATTR_NAS_IP
public static final byte RADIUS_ATTR_NAS_PORT
public static final byte RADIUS_ATTR_FRAMED_MTU
public static final byte RADIUS_ATTR_STATE
public static final byte RADIUS_ATTR_VENDOR_SPECIFIC
public static final byte RADIUS_ATTR_CALLING_STATION_ID
public static final byte RADIUS_ATTR_NAS_ID
public static final byte RADIUS_ATTR_ACCT_SESSION_ID
public static final byte RADIUS_ATTR_NAS_PORT_TYPE
public static final byte RADIUS_ATTR_EAP_MESSAGE
public static final byte RADIUS_ATTR_MESSAGE_AUTH
public static final byte RADIUS_ATTR_NAS_PORT_ID
public RADIUSAttribute()
public RADIUSAttribute(byte type, byte length, byte[] value)
type
- typelength
- lengthvalue
- valuepublic boolean isValidType()
public byte getType()
public RADIUSAttribute setType(byte type)
type
- the code to setpublic byte getLength()
public RADIUSAttribute setLength(byte length)
length
- the length to setpublic byte[] getValue()
public RADIUSAttribute setValue(byte[] value)
value
- the data to setpublic java.lang.String toString()
toString
in class java.lang.Object