openikev2::Command Class Reference

This class represents various sorts of Command for the IkeSaController objects. More...

#include <command.h>

Inheritance diagram for openikev2::Command:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 Command (bool is_inheritable)
 Creates a new Commmand.
virtual Enums::MESSAGE_ACTION executeCommand (IkeSaController &ike_sa_controller)=0
 Execute the commmand.
virtual string getCommandName () const=0
 Get the command name.
virtual bool isInheritable () const
 Indicates if the command will be inherited on IKE_SA rekeyings.

Protected Attributes

bool is_inheritable
 Indicates if the command will be inherited on IKE_SA rekeyings.

Detailed Description

This class represents various sorts of Command for the IkeSaController objects.

Author:
Pedro J. Fernandez Ruiz, Alejandro Perez Mendez <pedroj.fernandez@dif.um.es, alejandro_perez@dif.um.es>


Constructor & Destructor Documentation

openikev2::Command::Command ( bool  is_inheritable  ) 

Creates a new Commmand.

Parameters:
is_inheritable If the Commnad must be inherited in the IKE_SA rekeyings


Member Function Documentation

virtual Enums::MESSAGE_ACTION openikev2::Command::executeCommand ( IkeSaController ike_sa_controller  )  [pure virtual]

Execute the commmand.

Parameters:
ike_sa_controller IkeSaController receiving the action
Returns:
The action to be performed after Command execution

Implemented in openikev2::AlarmCommand, openikev2::CloseAllSasCommand, openikev2::ExitIkeSaCommand, openikev2::MessageReceivedCommand, openikev2::SendDeleteChildSaReqCommand, openikev2::SendDeleteIkeSaReqCommand, openikev2::SendEapContinueReqCommand, openikev2::SendEapFinishReqCommand, openikev2::SendIkeAuthReqCommand, openikev2::SendIkeSaInitReqCommand, openikev2::SendInformationalReqCommand, openikev2::SendNewChildSaReqCommand, openikev2::SendRekeyChildSaReqCommand, and openikev2::SendRekeyIkeSaReqCommand.

virtual string openikev2::Command::getCommandName (  )  const [pure virtual]

Get the command name.

Returns:
The commad name

Implemented in openikev2::AlarmCommand, openikev2::CloseAllSasCommand, openikev2::ExitIkeSaCommand, openikev2::MessageReceivedCommand, openikev2::SendDeleteChildSaReqCommand, openikev2::SendDeleteIkeSaReqCommand, openikev2::SendEapContinueReqCommand, openikev2::SendEapFinishReqCommand, openikev2::SendIkeAuthReqCommand, openikev2::SendIkeSaInitReqCommand, openikev2::SendInformationalReqCommand, openikev2::SendNewChildSaReqCommand, openikev2::SendRekeyChildSaReqCommand, and openikev2::SendRekeyIkeSaReqCommand.

bool openikev2::Command::isInheritable (  )  const [virtual]

Indicates if the command will be inherited on IKE_SA rekeyings.

Returns:
TRUE if the command is inheritable. FALSE otherwise


Generated on Fri Jul 27 11:04:50 2007 for libopenikev2 by  doxygen 1.5.1