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

#include <KeyExchangeData.h>

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

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 &)
 
KeyExchangeDataoperator= (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)
 

Detailed Description

Definition at line 37 of file KeyExchangeData.h.

Member Enumeration Documentation

Enumerator
START 
REQUEST 
RESPONSE 
COMPLETE 
PASSWORD_REQUEST 
WRONG_PASSWORD 
HASH_COMMIT 
NEWKEY_FOUND 
ERROR 

Definition at line 40 of file KeyExchangeData.h.

Constructor & Destructor Documentation

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.

dtn::security::KeyExchangeData::~KeyExchangeData ( )
virtual

Definition at line 43 of file KeyExchangeData.cpp.

dtn::security::KeyExchangeData::KeyExchangeData ( const KeyExchangeData obj)

Definition at line 46 of file KeyExchangeData.cpp.

Member Function Documentation

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
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().

Here is the call graph for this function:

void dtn::security::KeyExchangeData::setSessionId ( unsigned int  sessionId)
std::string dtn::security::KeyExchangeData::toString ( ) const

Definition at line 52 of file KeyExchangeData.cpp.

Referenced by dtn::security::KeyExchangeEvent::getMessage().

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const KeyExchangeData obj 
)
friend

Definition at line 140 of file KeyExchangeData.cpp.

std::istream& operator>> ( std::istream &  stream,
KeyExchangeData obj 
)
friend

Definition at line 154 of file KeyExchangeData.cpp.


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