public abstract class EAPAuthenticator extends RadiusAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static int |
EAP_AKA |
static int |
EAP_CISCO_MSCHAPV2 |
static int |
EAP_FAILURE |
static int |
EAP_GTC |
static int |
EAP_HEADERLEN |
static int |
EAP_IDENTITY |
static int |
EAP_LEAP |
static int |
EAP_MD5 |
static int |
EAP_MSCHAPV2 |
static int |
EAP_NAK |
static int |
EAP_NOTIFICATION |
static int |
EAP_OTP |
static int |
EAP_PEAP |
static int |
EAP_REQUEST |
static int |
EAP_RESPONSE |
static int |
EAP_SIM |
static int |
EAP_SUCCESS |
static int |
EAP_TLS |
static int |
EAP_TLV |
static int |
EAP_TTLS |
protected boolean |
peap |
protected int |
state |
static int |
STATE_AUTHENTICATED |
static int |
STATE_CHALLENGE |
static int |
STATE_FAILURE |
static int |
STATE_REJECTED |
static int |
STATE_SUCCESS |
classAttribute, client, password, stateAttribute, username| Constructor and Description |
|---|
EAPAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
doEAP(byte[] eapReply)
From: http://tools.ietf.org/id/draft-kamath-pppext-peapv0-00.txt
|
abstract byte[] |
doEAPType(byte id,
byte[] data) |
byte[] |
doEAPType(byte id,
byte[] data,
byte[] fullEAPPacket) |
byte[] |
eapFailure(byte id) |
protected byte[] |
eapRequest(int type,
byte id,
byte[] data) |
protected byte[] |
eapResponse(int type,
byte id,
byte[] data)
Encodes an EAP-Response
|
byte[] |
eapSuccess(byte id) |
byte |
getEAPType() |
int |
getState() |
boolean |
isStartWithIdentity() |
protected byte[] |
negotiateEAPType(byte id,
byte eapType)
Negotiates the EAP Authentication Protocol to use
|
void |
processChallenge(RadiusPacket p,
RadiusPacket r)
EAP requires a challenge/response.
|
void |
processRequest(RadiusPacket p) |
void |
setEAPType(int eapType) |
void |
setStartWithIdentity(boolean startWithIdentity) |
void |
setState(int state) |
protected boolean |
suedoEAPType(byte[] eap) |
byte[] |
tlvSuccess(byte id) |
getAuthName, getClassAttribute, getClient, getPassword, getStateAttribute, getUsername, setClient, setPassword, setupRequest, setUsernameprotected boolean peap
protected int state
public static final int STATE_CHALLENGE
public static final int STATE_AUTHENTICATED
public static final int STATE_REJECTED
public static final int STATE_SUCCESS
public static final int STATE_FAILURE
public static final int EAP_HEADERLEN
public static final int EAP_REQUEST
public static final int EAP_RESPONSE
public static final int EAP_SUCCESS
public static final int EAP_FAILURE
public static final int EAP_IDENTITY
public static final int EAP_NOTIFICATION
public static final int EAP_NAK
public static final int EAP_MD5
public static final int EAP_OTP
public static final int EAP_GTC
public static final int EAP_TLS
public static final int EAP_LEAP
public static final int EAP_SIM
public static final int EAP_TTLS
public static final int EAP_AKA
public static final int EAP_PEAP
public static final int EAP_MSCHAPV2
public static final int EAP_CISCO_MSCHAPV2
public static final int EAP_TLV
public void processRequest(RadiusPacket p) throws RadiusException
processRequest in class RadiusAuthenticatorp - The RadiusPacket to be processedRadiusExceptionRadiusAuthenticator.processRequest(net.jradius.packet.RadiusPacket)public void processChallenge(RadiusPacket p, RadiusPacket r) throws RadiusException, NoSuchAlgorithmException
processChallenge in class RadiusAuthenticatorp - The original AccessRequest RadiusPacketr - The AccessChallenge packetNoSuchAlgorithmExceptionRadiusExceptionRadiusAuthenticator.processChallenge(net.jradius.packet.RadiusPacket, net.jradius.packet.RadiusPacket)public byte getEAPType()
public void setEAPType(int eapType)
eapType - The eapType to set.public abstract byte[] doEAPType(byte id,
byte[] data)
throws RadiusException,
NoSuchAlgorithmException
id - The EAP IDdata - The EAP DataNoSuchAlgorithmExceptionRadiusExceptionpublic byte[] doEAPType(byte id,
byte[] data,
byte[] fullEAPPacket)
throws RadiusException,
NoSuchAlgorithmException
protected boolean suedoEAPType(byte[] eap)
public byte[] doEAP(byte[] eapReply)
throws RadiusException,
NoSuchAlgorithmException
2.1. Extensions Request Packet A summary of the Extensions Request packet format is shown below. The fields are transmitted from left to right. 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Code | Identifier | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Data.... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
eapReply - The in-coming EAP-MessageNoSuchAlgorithmExceptionRadiusExceptionprotected byte[] negotiateEAPType(byte id,
byte eapType)
id - The EAP IDeapType - The wanted EAP Protocol Typeprotected byte[] eapResponse(int type,
byte id,
byte[] data)
type - The EAP-Typeid - The EAP Packet IDdata - The EAP-Message dataprotected byte[] eapRequest(int type,
byte id,
byte[] data)
public byte[] eapSuccess(byte id)
public byte[] eapFailure(byte id)
public byte[] tlvSuccess(byte id)
public boolean isStartWithIdentity()
public void setStartWithIdentity(boolean startWithIdentity)
public int getState()
public void setState(int state)
Copyright © 2017. All rights reserved.