public class EAP extends BasePacket
| Modifier and Type | Field and Description | 
|---|---|
static byte | 
ATTR_GTC  | 
static byte | 
ATTR_IDENTITY  | 
static byte | 
ATTR_MD5  | 
static byte | 
ATTR_NAK  | 
static byte | 
ATTR_NOTIFICATION  | 
static byte | 
ATTR_OTP  | 
static byte | 
ATTR_TLS  | 
protected byte | 
code  | 
protected byte[] | 
data  | 
static short | 
EAP_HDR_LEN_REQ_RESP  | 
static short | 
EAP_HDR_LEN_SUC_FAIL  | 
static byte | 
FAILURE  | 
protected byte | 
identifier  | 
protected short | 
length  | 
static short | 
MIN_LEN  | 
static byte | 
REQUEST  | 
static byte | 
RESPONSE  | 
static byte | 
SUCCESS  | 
protected byte | 
type  | 
parent, payload| Constructor and Description | 
|---|
EAP()
Default EAP constructor that sets the EAP code to 0. 
 | 
EAP(byte code,
   byte identifier,
   byte type,
   byte[] data)
EAP constructor that initially sets all fields. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Deserializer<EAP> | 
deserializer()
Deserializer for EAP packets. 
 | 
boolean | 
equals(Object o)  | 
byte | 
getCode()
Gets the EAP code. 
 | 
byte[] | 
getData()
Gets the EAP data. 
 | 
byte | 
getDataType()
Gets the data type. 
 | 
byte | 
getIdentifier()
Gets the EAP identifier. 
 | 
short | 
getLength()
Gets the get packet length. 
 | 
int | 
hashCode()  | 
byte[] | 
serialize()
Sets all payloads parent packet if applicable, then serializes this
 packet and all payloads. 
 | 
EAP | 
setCode(byte code)
Sets the EAP code. 
 | 
EAP | 
setData(byte[] data)
Sets the EAP data. 
 | 
EAP | 
setDataType(byte type)
Sets the data type. 
 | 
EAP | 
setIdentifier(byte identifier)
Sets the EAP identifier. 
 | 
EAP | 
setLength(short length)
Sets the packet length. 
 | 
String | 
toString()  | 
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final short MIN_LEN
public static final short EAP_HDR_LEN_REQ_RESP
public static final short EAP_HDR_LEN_SUC_FAIL
public static final byte REQUEST
public static final byte RESPONSE
public static final byte SUCCESS
public static final byte FAILURE
public static final byte ATTR_IDENTITY
public static final byte ATTR_NOTIFICATION
public static final byte ATTR_NAK
public static final byte ATTR_MD5
public static final byte ATTR_OTP
public static final byte ATTR_GTC
public static final byte ATTR_TLS
protected byte code
protected byte identifier
protected short length
protected byte type
protected byte[] data
public EAP()
public EAP(byte code,
           byte identifier,
           byte type,
           byte[] data)
code - EAP codeidentifier - EAP identifiertype - packet typedata - EAP datapublic byte getCode()
public EAP setCode(byte code)
code - EAP codepublic byte getIdentifier()
public EAP setIdentifier(byte identifier)
identifier - EAP identifierpublic short getLength()
public EAP setLength(short length)
length - packet lengthpublic byte getDataType()
public EAP setDataType(byte type)
type - data typepublic byte[] getData()
public EAP setData(byte[] data)
data - EAP data to be setpublic static Deserializer<EAP> deserializer()
public byte[] serialize()
IPacketpublic int hashCode()
hashCode in class BasePacketpublic boolean equals(Object o)
equals in class BasePacket