IBR-DTN  1.0.0
dtn::security::KeyExchanger Class Reference

#include <KeyExchanger.h>

Inheritance diagram for dtn::security::KeyExchanger:
Inheritance graph
Collaboration diagram for dtn::security::KeyExchanger:
Collaboration graph

Public Member Functions

 KeyExchanger ()
 
virtual ~KeyExchanger ()
 
virtual void __cancellation () throw ()
 
virtual void componentUp () throw ()
 
virtual void componentRun () throw ()
 
virtual void componentDown () throw ()
 
virtual const std::string getName () const
 
virtual void callbackBundleReceived (const dtn::data::Bundle &b)
 
virtual void raiseEvent (const dtn::security::KeyExchangeEvent &evt) throw ()
 
virtual void raiseEvent (const dtn::core::TimeEvent &evt) throw ()
 
virtual void submit (KeyExchangeSession &session, const KeyExchangeData &data)
 
virtual void finish (KeyExchangeSession &session)
 
virtual void error (KeyExchangeSession &session, bool reportError)
 
- Public Member Functions inherited from dtn::security::KeyExchangeManager
virtual ~KeyExchangeManager ()=0
 
- Public Member Functions inherited from dtn::daemon::IndependentComponent
 IndependentComponent ()
 
virtual ~IndependentComponent ()
 
virtual void initialize () throw ()
 
virtual void startup () throw ()
 
virtual void terminate () throw ()
 
- Public Member Functions inherited from dtn::daemon::Component
virtual ~Component ()=0
 
- Public Member Functions inherited from dtn::core::AbstractWorker
 AbstractWorker ()
 
virtual ~AbstractWorker ()
 
virtual const EID getWorkerURI () const
 
- Public Member Functions inherited from dtn::core::EventReceiver< dtn::security::KeyExchangeEvent >
virtual ~EventReceiver ()
 
- Public Member Functions inherited from dtn::core::EventReceiver< dtn::core::TimeEvent >
virtual ~EventReceiver ()
 

Additional Inherited Members

- Protected Member Functions inherited from dtn::daemon::IndependentComponent
void run () throw ()
 
- Protected Member Functions inherited from dtn::core::AbstractWorker
void initialize (const std::string &uri)
 
void transmit (dtn::data::Bundle &bundle)
 
void shutdown ()
 
void subscribe (const dtn::data::EID &endpoint)
 
void unsubscribe (const dtn::data::EID &endpoint)
 
- Protected Attributes inherited from dtn::core::AbstractWorker
dtn::data::EID _eid
 

Detailed Description

Definition at line 49 of file KeyExchanger.h.

Constructor & Destructor Documentation

dtn::security::KeyExchanger::KeyExchanger ( )

Definition at line 62 of file KeyExchanger.cpp.

dtn::security::KeyExchanger::~KeyExchanger ( )
virtual

Definition at line 79 of file KeyExchanger.cpp.

Member Function Documentation

void dtn::security::KeyExchanger::__cancellation ( )
throw (
)
virtual

This method is called after componentDown() and should should guarantee that blocking calls in componentRun() will unblock.

Implements dtn::daemon::IndependentComponent.

Definition at line 93 of file KeyExchanger.cpp.

void dtn::security::KeyExchanger::callbackBundleReceived ( const dtn::data::Bundle b)
virtual
void dtn::security::KeyExchanger::componentDown ( )
throw (
)
virtual

This method is called if the component should stop. Clean-up code should be inserted here.

Implements dtn::daemon::IndependentComponent.

Definition at line 135 of file KeyExchanger.cpp.

References dtn::core::EventDispatcher< E >::remove().

Here is the call graph for this function:

void dtn::security::KeyExchanger::componentRun ( )
throw (
)
virtual

This is the run method. The component should loop in there until componentDown() or __cancellation() is called.

Implements dtn::daemon::IndependentComponent.

Definition at line 107 of file KeyExchanger.cpp.

References dtn::security::KeyExchangeProtocol::initialize().

Here is the call graph for this function:

void dtn::security::KeyExchanger::componentUp ( )
throw (
)
virtual

Is called in preparation of the component. Before componentRun() is called.

Implements dtn::daemon::IndependentComponent.

Definition at line 98 of file KeyExchanger.cpp.

References dtn::core::EventDispatcher< E >::add().

Here is the call graph for this function:

void dtn::security::KeyExchanger::error ( KeyExchangeSession session,
bool  reportError 
)
virtual

Definition at line 298 of file KeyExchanger.cpp.

References dtn::security::KeyExchangeData::ERROR, dtn::security::KeyExchangeSession::getPeer(), dtn::security::KeyExchangeEvent::raise(), and submit().

Referenced by submit().

Here is the call graph for this function:

const std::string dtn::security::KeyExchanger::getName ( ) const
virtual

Return an identifier for this component

Returns

Implements dtn::daemon::Component.

Definition at line 141 of file KeyExchanger.cpp.

void dtn::security::KeyExchanger::raiseEvent ( const dtn::security::KeyExchangeEvent evt)
throw (
)
virtual

Receives incoming events.

Implements dtn::core::EventReceiver< dtn::security::KeyExchangeEvent >.

Definition at line 172 of file KeyExchanger.cpp.

void dtn::security::KeyExchanger::raiseEvent ( const dtn::core::TimeEvent evt)
throw (
)
virtual

Implements dtn::core::EventReceiver< dtn::core::TimeEvent >.

Definition at line 177 of file KeyExchanger.cpp.

References dtn::utils::Clock::getMonotonicTimestamp().

Here is the call graph for this function:


The documentation for this class was generated from the following files: