#include <RTSPServer.hh>
Collaboration diagram for UserAuthenticationDatabase:

Public Member Functions | |
| UserAuthenticationDatabase (char const *realm=NULL, Boolean passwordsAreMD5=False) | |
| virtual | ~UserAuthenticationDatabase () |
| virtual void | addUserRecord (char const *username, char const *password) |
| virtual void | removeUserRecord (char const *username) |
| virtual char const * | lookupPassword (char const *username) |
| char const * | realm () |
| Boolean | passwordsAreMD5 () |
Protected Attributes | |
| HashTable * | fTable |
| char * | fRealm |
| Boolean | fPasswordsAreMD5 |
Definition at line 36 of file RTSPServer.hh.
| UserAuthenticationDatabase::UserAuthenticationDatabase | ( | char const * | realm = NULL, |
|
| Boolean | passwordsAreMD5 = False | |||
| ) |
Definition at line 1226 of file RTSPServer.cpp.
01228 : fTable(HashTable::create(STRING_HASH_KEYS)), 01229 fRealm(strDup(realm == NULL ? "LIVE555 Streaming Media" : realm)), 01230 fPasswordsAreMD5(passwordsAreMD5) { 01231 }
| UserAuthenticationDatabase::~UserAuthenticationDatabase | ( | ) | [virtual] |
| void UserAuthenticationDatabase::addUserRecord | ( | char const * | username, | |
| char const * | password | |||
| ) | [virtual] |
| void UserAuthenticationDatabase::removeUserRecord | ( | char const * | username | ) | [virtual] |
Definition at line 1243 of file RTSPServer.cpp.
References fTable, HashTable::Lookup(), password, and HashTable::Remove().
01243 { 01244 char* password = (char*)(fTable->Lookup(username)); 01245 fTable->Remove(username); 01246 delete[] password; 01247 }
| char const * UserAuthenticationDatabase::lookupPassword | ( | char const * | username | ) | [virtual] |
| char const* UserAuthenticationDatabase::realm | ( | ) | [inline] |
| Boolean UserAuthenticationDatabase::passwordsAreMD5 | ( | ) | [inline] |
Definition at line 52 of file RTSPServer.hh.
References fPasswordsAreMD5.
00052 { return fPasswordsAreMD5; }
HashTable* UserAuthenticationDatabase::fTable [protected] |
Definition at line 55 of file RTSPServer.hh.
Referenced by addUserRecord(), lookupPassword(), removeUserRecord(), and ~UserAuthenticationDatabase().
char* UserAuthenticationDatabase::fRealm [protected] |
Definition at line 56 of file RTSPServer.hh.
Referenced by realm(), and ~UserAuthenticationDatabase().
Boolean UserAuthenticationDatabase::fPasswordsAreMD5 [protected] |
1.5.2