#include <PKIFNSSDatabase.h>
TSP-enforcing: No
Definition at line 21 of file PKIFNSSDatabase.h.
Public Member Functions | |
std::string | GetDBDir (void) |
Static Public Member Functions | |
static CPKIFNSSDatabase * | GetInstance (const std::string &dbdir) |
static CPKIFNSSDatabase * | GetInstance (void) |
static void | Shutdown (void) |
static bool | IsInitialized (void) |
CPKIFNSSDatabase * CPKIFNSSDatabase::GetInstance | ( | const std::string & | dbdir | ) | [static] |
Interface: Subsystems
Return an instance of the one and only nss database instance. This functions throws PKIFNSS_DB_ALREADY_INITED exception if the dbdir is different than the one and only instance or if nss can't initialize
CPKIFCryptoException(PKIFNSS_DB_ALREADY_INITED) |
Definition at line 63 of file PKIFNSSDatabase.cpp.
References Initialize(), m_dbdir, PKIFNSS_DB_ALREADY_INITED, and RAISE_CRYPTO_EXCEPTION.
CPKIFNSSDatabase * CPKIFNSSDatabase::GetInstance | ( | void | ) | [static] |
Interface: Subsystems
This variant of GetInstance() just returns the current nss database instance or creates a new DB-free instance if none exists. Tt never complains about NSS being currently initialized.
Definition at line 44 of file PKIFNSSDatabase.cpp.
Referenced by CPKIFNSSCertUpdate::CPKIFNSSCertUpdate(), CPKIFNSSCRLUpdate::CPKIFNSSCRLUpdate(), CPKIFNSSRepository::CPKIFNSSRepository(), CPKIFNSSTrustStore::CPKIFNSSTrustStore(), GetCurrentNSSDBDir(), CPKIFNSSRaw::Initialize(), CPKIFNSS::Initialize(), and ShutdownCrypto().
std::string CPKIFNSSDatabase::GetDBDir | ( | void | ) |
Interface: Subsystems
This function returns the path to NSS DB directory
Definition at line 154 of file PKIFNSSDatabase.cpp.
References m_dbdir.
Referenced by GetCurrentNSSDBDir().
void CPKIFNSSDatabase::Shutdown | ( | void | ) | [static] |
Interface: Subsystems
This function shuts down NSS so that it can be re-initialized with a new database.
CPKIFCryptoException(PKIFNSS_SHUTDOWN_FAILED) |
Definition at line 98 of file PKIFNSSDatabase.cpp.
References CPKIFNSSHelper::NSSAvaliable(), PKIFDelete(), PKIFNSS_SHUTDOWN_FAILED, and RAISE_CRYPTO_EXCEPTION.
Referenced by ShutdownCrypto().
bool CPKIFNSSDatabase::IsInitialized | ( | void | ) | [static] |
Interface: Subsystems
This function returns the path to NSS DB directory
Definition at line 167 of file PKIFNSSDatabase.cpp.
Referenced by IsNSSDBInitialized().