IBR-DTN
1.0.0
|
#include <KeyExchanger.h>
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) |
![]() | |
virtual | ~KeyExchangeManager ()=0 |
![]() | |
IndependentComponent () | |
virtual | ~IndependentComponent () |
virtual void | initialize () throw () |
virtual void | startup () throw () |
virtual void | terminate () throw () |
![]() | |
virtual | ~Component ()=0 |
![]() | |
AbstractWorker () | |
virtual | ~AbstractWorker () |
virtual const EID | getWorkerURI () const |
![]() | |
virtual | ~EventReceiver () |
![]() | |
virtual | ~EventReceiver () |
Additional Inherited Members | |
![]() | |
void | run () throw () |
![]() | |
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) |
![]() | |
dtn::data::EID | _eid |
Definition at line 49 of file KeyExchanger.h.
dtn::security::KeyExchanger::KeyExchanger | ( | ) |
Definition at line 62 of file KeyExchanger.cpp.
|
virtual |
Definition at line 79 of file KeyExchanger.cpp.
|
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.
|
virtual |
Receives incoming bundles.
Implements dtn::core::AbstractWorker.
Definition at line 146 of file KeyExchanger.cpp.
References dtn::data::Bundle::find(), dtn::data::PayloadBlock::getBLOB(), dtn::core::BundleCore::local, dtn::security::KeyExchangeEvent::raise(), dtn::data::EID::sameHost(), and dtn::data::BundleID::source.
|
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().
|
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().
|
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().
|
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().
|
virtual |
Implements dtn::security::KeyExchangeManager.
Definition at line 241 of file KeyExchanger.cpp.
References dtn::security::KeyExchangeData::COMPLETE, dtn::security::SecurityKey::flags, dtn::security::SecurityKeyManager::get(), dtn::security::KeyExchangeData::getAction(), dtn::security::SecurityKey::getFingerprint(), dtn::security::SecurityKeyManager::getInstance(), dtn::security::KeyExchangeSession::getKey(), dtn::security::KeyExchangeSession::getPeer(), dtn::security::KeyExchangeSession::getUniqueId(), dtn::security::SecurityKey::KEY_PUBLIC, dtn::security::KeyExchangeData::NEWKEY_FOUND, dtn::security::KeyExchangeEvent::raise(), and dtn::security::SecurityKeyManager::store().
|
virtual |
Return an identifier for this component
Implements dtn::daemon::Component.
Definition at line 141 of file KeyExchanger.cpp.
|
virtual |
Receives incoming events.
Implements dtn::core::EventReceiver< dtn::security::KeyExchangeEvent >.
Definition at line 172 of file KeyExchanger.cpp.
|
virtual |
Implements dtn::core::EventReceiver< dtn::core::TimeEvent >.
Definition at line 177 of file KeyExchanger.cpp.
References dtn::utils::Clock::getMonotonicTimestamp().
|
virtual |
KeyExchangeManager methods
Implements dtn::security::KeyExchangeManager.
Definition at line 192 of file KeyExchanger.cpp.
References dtn::data::PrimaryBlock::destination, dtn::data::PrimaryBlock::DESTINATION_IS_SINGLETON, error(), dtn::security::KeyExchangeSession::getPeer(), dtn::data::PrimaryBlock::lifetime, dtn::core::BundleCore::local, dtn::data::PrimaryBlock::PRIORITY_BIT1, dtn::data::PrimaryBlock::PRIORITY_BIT2, dtn::data::Bundle::push_back(), dtn::data::PrimaryBlock::set(), dtn::data::EID::setApplication(), dtn::data::BundleID::source, dtn::security::KeyExchangeSession::touch(), and dtn::core::AbstractWorker::transmit().
Referenced by error().