IBR-DTNSuite  0.8
dtn::security::SecurityKey Class Reference

#include <SecurityKey.h>

Collaboration diagram for dtn::security::SecurityKey:

List of all members.

Public Types

enum  KeyType { KEY_UNSPEC = 0, KEY_SHARED = 1, KEY_PRIVATE = 2, KEY_PUBLIC = 3 }

Public Member Functions

 SecurityKey ()
virtual ~SecurityKey ()
virtual RSAgetRSA () const
virtual EVP_PKEY * getEVP () const
virtual const std::string getData () const

Static Public Member Functions

static void free (RSA *key)
static void free (EVP_PKEY *key)

Public Attributes

KeyType type
dtn::data::EID reference
dtn::data::DTNTime lastupdate
ibrcommon::File file

Friends

std::ostream & operator<< (std::ostream &stream, const SecurityKey &key)
std::istream & operator>> (std::istream &stream, SecurityKey &key)

Detailed Description

Definition at line 25 of file SecurityKey.h.


Member Enumeration Documentation

Enumerator:
KEY_UNSPEC 
KEY_SHARED 
KEY_PRIVATE 
KEY_PUBLIC 

Definition at line 28 of file SecurityKey.h.


Constructor & Destructor Documentation

Definition at line 23 of file SecurityKey.cpp.


Member Function Documentation

void dtn::security::SecurityKey::free ( EVP_PKEY *  key) [static]

Definition at line 31 of file SecurityKey.cpp.

const std::string dtn::security::SecurityKey::getData ( ) const [virtual]

Definition at line 36 of file SecurityKey.cpp.

References file, and ibrcommon::File::getPath().

Referenced by dtn::security::BundleAuthenticationBlock::calcMAC().

Here is the call graph for this function:

EVP_PKEY * dtn::security::SecurityKey::getEVP ( ) const [virtual]

Definition at line 61 of file SecurityKey.cpp.

References file, ibrcommon::File::getPath(), KEY_PRIVATE, KEY_PUBLIC, and type.

Here is the call graph for this function:


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const SecurityKey key 
) [friend]

Definition at line 60 of file SecurityKey.h.

std::istream& operator>> ( std::istream &  stream,
SecurityKey key 
) [friend]

Definition at line 75 of file SecurityKey.h.


Member Data Documentation


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