#include <eap_fsm.hxx>
Inheritance diagram for EapSwitchStateMachine:
Public Member Functions | |
virtual void | Notify (AAA_Event ev)=0 |
Called by any switch or method state machine. | |
virtual void | Send (AAAMessageBlock *b)=0 |
virtual void | Abort ()=0 |
EapType & | CurrentMethod () |
Call this function to get the current method. | |
virtual void | Receive (AAAMessageBlock *)=0 |
This function is called by EAP carrier protocol to input EAP message. | |
virtual void | ReceiveFromAAA (AAAMessageBlock *msg) throw (int) |
ACE_Byte & | CurrentIdentifier () |
Call this function to get the currentIdentifier. | |
AAAMessageBlock * | GetRxMessage () |
void | SetRxMessage (AAAMessageBlock *p) |
void | DeleteRxMessage () |
AAAMessageBlock * | GetTxMessage () |
void | SetTxMessage (AAAMessageBlock *p) |
void | DeleteTxMessage () |
std::string & | PeerIdentity () |
Call this function to get the pointer to the identity of the EAP peer. | |
std::string & | AuthenticatorIdentity () |
bool & | KeyAvailable () |
Call this function to check the availability of the key. | |
std::string & | KeyData () |
Call this function to retrieve the key. | |
bool | IsEapTunneled () |
Call this function to check whether this is a tunneled session. | |
EapPolicy & | Policy (void) |
Call this function to get the pointer to policy. | |
void | CreateMethodStateMachine (EapType t, EapRole role) |
void | DeleteMethodStateMachine () |
EapMethodStateMachine & | MethodStateMachine () |
Call this function to get the pointer to method state machine. | |
EapMessageQueue & | RxQueue () |
Call this function to get the reference to receiving message queue. | |
int & | DiscardCount () |
Use this function to obtain the reference to discardCount. | |
ACE_Reactor & | Reactor () |
Protected Member Functions | |
EapSwitchStateMachine (ACE_Reactor &r, EapJobHandle &h) | |
Protected Attributes | |
EapType | currentMethod |
This indicates the currently processed EAP Type. | |
AAAMessageBlock * | txMessage |
AAAMessageBlock * | rxMessage |
EapMessageQueue | rxQueue |
This is used for queueing incoming EAP messages to process. | |
ACE_Byte | currentIdentifier |
std::string | peerIdentity |
std::string | authenticatorIdentity |
bool | eapTunneled |
EapPolicy | policy |
This is the policy used for the session. | |
EapMethodStateMachine * | methodStateMachine |
This stores the pointer to a method state machine. | |
int | discardCount |
This variable is incremented when a received message is discarded. | |
bool | keyAvailable |
This variable indicates whether the key is available or not. | |
std::string | keyData |
This variable stores the key. | |
ACE_Reactor & | reactor |
|
This callback function is called when there is an internal error in a state machine. The default action is to exit the program. Applications can replace the default behavior with more appropriate behavior such as deleting the errornous session. |
|
Call this function to get the pointer to the identity of the EAP authenticator. |
|
Call this function to create a method state mechine in the session. |
|
Call this function to delete the method state mechine in the session. |
|
Call this function to delete rxMessage. This function is typically called by methods. |
|
Call this function to delete txMessage. This function is typically called by methods. |
|
Call this function to get the pointer of rxMessage. This function is typically called by switches. |
|
Call this function to get the pointer to txMessage. This function is typically called by switches. |
|
This function is called by AAA protocol on passthrough authenticator to input EAP message. |
|
This callback function is called when a message other than Success/Failure is sent from the session. If further processing for the message is performed in other threads, the application must make a duplication of the message via AAAMessageBlock::Acquire(AAAMessageBlock*) so that the API will not release the message allocation until reference count becomes 0. |
|
Call this function to set the pointer to rxMessage. This function is typically called by methods. |
|
Call this function to set the pointer to txMessage. This function is typically called by methods. |
|
This stores the Identity payload of the EAP authenticator. The string may or may not be null-terminated. When the string is null-terminated, the terminating null charactor must not be included in the Identity payload. |
|
This variable indicates the Identifier of the last valid Request (for Peer) or the outstanding Request (for Authenticator). |
|
This variable is set true if this session is created within another session. |
|
This stores the Identity payload (e.g., username) of the EAP peer. The string may or may not be null-terminated. When the string is null-terminated, the terminating null charactor must not be included in the Identity payload. |
|
This is used for passing an incoming EAP message from the switch to methods. |
|
This is used for passing an outgoing EAP message from methods to the switch. For peers, txMessage is equivalent to eapRespData and lastRespData. For authenticators, txMessage is equivalent to eapReqData and lastReqData. |