CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
cipher::MemoryKeyDatabase Class Reference

#include <encrypt.h>

Inheritance diagram for cipher::MemoryKeyDatabase:
Collaboration diagram for cipher::MemoryKeyDatabase:

Public Member Functions

 MemoryKeyDatabase ()
 
virtual ~MemoryKeyDatabase ()
 
virtual bool StoreNew (const Key *key, std::string *id)
 
virtual const KeyFind (const std::string &id)
 
- Public Member Functions inherited from cipher::AbstractKeyDatabase
virtual ~AbstractKeyDatabase ()
 

Private Attributes

pthread_mutex_t * lock_
 
std::map< std::string, const
Key * > 
database_
 

Additional Inherited Members

- Private Member Functions inherited from SingleCopy
 SingleCopy ()
 

Detailed Description

Definition at line 71 of file encrypt.h.

Constructor & Destructor Documentation

cipher::MemoryKeyDatabase::MemoryKeyDatabase ( )

Definition at line 117 of file encrypt.cc.

Here is the call graph for this function:

cipher::MemoryKeyDatabase::~MemoryKeyDatabase ( )
virtual

Definition at line 125 of file encrypt.cc.

Member Function Documentation

const Key * cipher::MemoryKeyDatabase::Find ( const std::string &  id)
virtual

Implements cipher::AbstractKeyDatabase.

Definition at line 146 of file encrypt.cc.

bool cipher::MemoryKeyDatabase::StoreNew ( const Key key,
std::string *  id 
)
virtual

Implements cipher::AbstractKeyDatabase.

Definition at line 131 of file encrypt.cc.

Here is the call graph for this function:

Member Data Documentation

std::map<std::string, const Key *> cipher::MemoryKeyDatabase::database_
private

Definition at line 80 of file encrypt.h.

pthread_mutex_t* cipher::MemoryKeyDatabase::lock_
private

Definition at line 79 of file encrypt.h.


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