AXL RADIUS Server API V3

com.theorem.radserver3.module.leapclient
Class LEAPPacket

Object
  extended byEAPPacket
      extended byLEAPPacket

public class LEAPPacket
extends EAPPacket

LEAP Packet class to handle LEAP athentication.


Field Summary
 
Fields inherited from class EAPPacket
CODE_FAILURE, CODE_REQUEST, CODE_RESPONSE, CODE_SUCCESS, MAX_ATTRIBUTE_LENGTH, MINPACKET, TYPE_AKA, TYPE_EXPANDED, TYPE_EXPERIMENTAL_TYPE, TYPE_GTC, TYPE_IDENTITY, TYPE_INTERNATIONALIZATION, TYPE_LEAP, TYPE_MD5, TYPE_NAK, TYPE_NOTIFICATION, TYPE_OTP, TYPE_PEAP, TYPE_SIM, TYPE_TLS, TYPE_TTLS, TYPE_UNDEFINED
 
Constructor Summary
LEAPPacket()
          Constructor to set payload data for the LEAP packet.
LEAPPacket(AttributeList attributeList)
          Constructor to extract a LEAP packet from EAP-Messages in an AttributeList.
LEAPPacket(int packetId, int code, byte[] data)
          Constructor to set payload data for the LEAP packet - client side.
 
Method Summary
 byte[] getChallenge()
          Get the challenge data.
 byte[] getLEAPData()
          Get the LEAP payload data.
 void setLEAPData(int packetId, int code, byte[] data)
          Set up the LEAP data, client side
 
Methods inherited from class EAPPacket
createChallenge16, createChallenge8, createExpandedNAK, createFailure, createGTCRequest, createGTCResponse, createIdentityRequest, createIdentityResponse, createMD5Request, createMD5Response, createNAKResponse, createNotificationRequest, createNotificationResponse, createOTPRequest, createOTPResponse, createPacketIdentifier, createStart, createSuccess, getCode, getCodeName, getData, getEAPPacketData, getIdentity, getIdentityBytes, getLength, getPacketIdentifier, getType, getTypeName, getTypeName, getVendorId, getVendorType, isEAPProtocol, isEAPStart, isEAPTLS, isFailure, isIdentity, isNAK, isRequest, isResponse, isSuccess, setCode, setData, setData, setFailure, setPacketIdentifier, setRequest, setResponse, setSuccess, toAttributeList, toServerAttributeList, toString
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LEAPPacket

public LEAPPacket()
Constructor to set payload data for the LEAP packet. of the data.


LEAPPacket

public LEAPPacket(AttributeList attributeList)
           throws EAPException
Constructor to extract a LEAP packet from EAP-Messages in an AttributeList.

Parameters:
attributeList - Attribute list.containing EAP-Messages.
Throws:
EAPException - If there's a problem extracting the EAP-Message data.

LEAPPacket

public LEAPPacket(int packetId,
                  int code,
                  byte[] data)
Constructor to set payload data for the LEAP packet - client side.

Parameters:
packetId - Packet identifier
code - EAP code type.
data - Payload data. of the data.
Method Detail

getChallenge

public byte[] getChallenge()
Get the challenge data.

Returns:
the challenge data. The value will be null if the challenge data has not been set.

getLEAPData

public byte[] getLEAPData()
                   throws EAPException
Get the LEAP payload data. This does not include any EAP header information.

Returns:
LEAP Payload data.
Throws:
EAPException - if there is insufficient data.

setLEAPData

public void setLEAPData(int packetId,
                        int code,
                        byte[] data)
Set up the LEAP data, client side


AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.