IBR-DTN
1.0.0
|
#include <KeyExchangeData.h>
Public Types | |
enum | Action { START = 0, REQUEST = 1, RESPONSE = 2, COMPLETE = 3, PASSWORD_REQUEST = 4, WRONG_PASSWORD = 5, HASH_COMMIT = 6, NEWKEY_FOUND = 7, ERROR = 8 } |
Public Member Functions | |
KeyExchangeData () | |
KeyExchangeData (const Action action, const KeyExchangeSession &session) | |
KeyExchangeData (const Action action, const int protocol) | |
virtual | ~KeyExchangeData () |
KeyExchangeData (const KeyExchangeData &) | |
KeyExchangeData & | operator= (const KeyExchangeData &) |
int | getProtocol () const |
void | setProtocol (int protocol) |
Action | getAction () const |
void | setAction (Action action) |
void | setSession (const KeyExchangeSession &session) |
void | setSessionId (unsigned int sessionId) |
unsigned int | getSessionId () const |
int | getStep () const |
void | setStep (int step) |
std::string | toString () const |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const KeyExchangeData &obj) |
std::istream & | operator>> (std::istream &stream, KeyExchangeData &obj) |
Definition at line 37 of file KeyExchangeData.h.
Enumerator | |
---|---|
START | |
REQUEST | |
RESPONSE | |
COMPLETE | |
PASSWORD_REQUEST | |
WRONG_PASSWORD | |
HASH_COMMIT | |
NEWKEY_FOUND | |
ERROR |
Definition at line 40 of file KeyExchangeData.h.
dtn::security::KeyExchangeData::KeyExchangeData | ( | ) |
Definition at line 30 of file KeyExchangeData.cpp.
dtn::security::KeyExchangeData::KeyExchangeData | ( | const Action | action, |
const KeyExchangeSession & | session | ||
) |
Definition at line 34 of file KeyExchangeData.cpp.
dtn::security::KeyExchangeData::KeyExchangeData | ( | const Action | action, |
const int | protocol | ||
) |
Definition at line 38 of file KeyExchangeData.cpp.
|
virtual |
Definition at line 43 of file KeyExchangeData.cpp.
dtn::security::KeyExchangeData::KeyExchangeData | ( | const KeyExchangeData & | obj | ) |
Definition at line 46 of file KeyExchangeData.cpp.
KeyExchangeData::Action dtn::security::KeyExchangeData::getAction | ( | ) | const |
Definition at line 85 of file KeyExchangeData.cpp.
Referenced by dtn::security::KeyExchanger::finish(), dtn::security::KeyExchangeEvent::getMessage(), dtn::security::NoneProtocol::step(), dtn::security::HashProtocol::step(), dtn::security::JPAKEProtocol::step(), and dtn::security::DHProtocol::step().
int dtn::security::KeyExchangeData::getProtocol | ( | ) | const |
Definition at line 95 of file KeyExchangeData.cpp.
unsigned int dtn::security::KeyExchangeData::getSessionId | ( | ) | const |
Definition at line 115 of file KeyExchangeData.cpp.
int dtn::security::KeyExchangeData::getStep | ( | ) | const |
Definition at line 120 of file KeyExchangeData.cpp.
Referenced by dtn::security::HashProtocol::step(), dtn::security::JPAKEProtocol::step(), and dtn::security::DHProtocol::step().
KeyExchangeData & dtn::security::KeyExchangeData::operator= | ( | const KeyExchangeData & | obj | ) |
Definition at line 130 of file KeyExchangeData.cpp.
void dtn::security::KeyExchangeData::setAction | ( | Action | action | ) |
Definition at line 90 of file KeyExchangeData.cpp.
void dtn::security::KeyExchangeData::setProtocol | ( | int | protocol | ) |
Definition at line 100 of file KeyExchangeData.cpp.
void dtn::security::KeyExchangeData::setSession | ( | const KeyExchangeSession & | session | ) |
Definition at line 105 of file KeyExchangeData.cpp.
References dtn::security::KeyExchangeSession::getUniqueId().
void dtn::security::KeyExchangeData::setSessionId | ( | unsigned int | sessionId | ) |
Definition at line 110 of file KeyExchangeData.cpp.
Referenced by dtn::daemon::NativeDaemon::onKeyExchangeResponse().
void dtn::security::KeyExchangeData::setStep | ( | int | step | ) |
Definition at line 125 of file KeyExchangeData.cpp.
Referenced by dtn::daemon::NativeDaemon::onKeyExchangeResponse(), dtn::security::HashProtocol::step(), dtn::security::JPAKEProtocol::step(), and dtn::security::DHProtocol::step().
std::string dtn::security::KeyExchangeData::toString | ( | ) | const |
Definition at line 52 of file KeyExchangeData.cpp.
Referenced by dtn::security::KeyExchangeEvent::getMessage().
|
friend |
Definition at line 140 of file KeyExchangeData.cpp.
|
friend |
Definition at line 154 of file KeyExchangeData.cpp.