IBR-DTNSuite
0.12
|
#include <Configuration.h>
Public Types | |
enum | Level { SECURITY_LEVEL_NONE = 0, SECURITY_LEVEL_AUTHENTICATED = 1, SECURITY_LEVEL_ENCRYPTED = 2, SECURITY_LEVEL_SIGNED = 4 } |
Public Member Functions | |
bool | enabled () const |
bool | doTLS () const |
checks if TLS shall be activated More... | |
bool | TLSRequired () const |
Checks if TLS is required. More... | |
int | getLevel () const |
const ibrcommon::File & | getPath () const |
const ibrcommon::File & | getBABDefaultKey () const |
const ibrcommon::File & | getCertificate () const |
const ibrcommon::File & | getKey () const |
const ibrcommon::File & | getTrustedCAPath () const |
Read the path for trusted Certificates from the Configuration. More... | |
bool | TLSEncryptionDisabled () const |
Checks if Encryption in TLS shall be disabled. More... | |
Protected Member Functions | |
Security () | |
virtual | ~Security () |
void | load (const ibrcommon::ConfigFile &conf) |
Friends | |
class | Configuration |
Definition at line 401 of file Configuration.h.
Enumerator | |
---|---|
SECURITY_LEVEL_NONE | |
SECURITY_LEVEL_AUTHENTICATED | |
SECURITY_LEVEL_ENCRYPTED | |
SECURITY_LEVEL_SIGNED |
Definition at line 433 of file Configuration.h.
|
protected |
Definition at line 98 of file Configuration.cpp.
|
protectedvirtual |
Definition at line 1182 of file Configuration.cpp.
bool dtn::daemon::Configuration::Security::doTLS | ( | ) | const |
checks if TLS shall be activated
Definition at line 1189 of file Configuration.cpp.
bool dtn::daemon::Configuration::Security::enabled | ( | ) | const |
Definition at line 1184 of file Configuration.cpp.
Referenced by dtn::security::SecurityKeyManager::onConfigurationChanged().
const ibrcommon::File & dtn::daemon::Configuration::Security::getBABDefaultKey | ( | ) | const |
Get the path to the default BAB key
Definition at line 1211 of file Configuration.cpp.
Referenced by dtn::security::SecurityKeyManager::get().
const ibrcommon::File & dtn::daemon::Configuration::Security::getCertificate | ( | ) | const |
Get the path to the TLS certificate
Definition at line 1216 of file Configuration.cpp.
Referenced by dtn::security::SecurityKeyManager::onConfigurationChanged().
const ibrcommon::File & dtn::daemon::Configuration::Security::getKey | ( | ) | const |
Get the path to the private TLS key
Definition at line 1221 of file Configuration.cpp.
Referenced by dtn::security::SecurityKeyManager::onConfigurationChanged().
int dtn::daemon::Configuration::Security::getLevel | ( | ) | const |
Get the configured security level
Definition at line 1206 of file Configuration.cpp.
Referenced by dtn::security::SecurityManager::fastverify().
const ibrcommon::File & dtn::daemon::Configuration::Security::getPath | ( | ) | const |
Get the path to security related files
Definition at line 1201 of file Configuration.cpp.
Referenced by dtn::security::SecurityKeyManager::onConfigurationChanged().
const ibrcommon::File & dtn::daemon::Configuration::Security::getTrustedCAPath | ( | ) | const |
Read the path for trusted Certificates from the Configuration.
Definition at line 1226 of file Configuration.cpp.
|
protectedvirtual |
Implements dtn::daemon::Configuration::Extension.
Definition at line 1067 of file Configuration.cpp.
References ibrcommon::File::createDirectory(), IBRCOMMON_LOGGER_ENDL, IBRCOMMON_LOGGER_TAG, ibrcommon::ConfigFile::read(), and ibrcommon::LogLevel::warning.
Referenced by dtn::daemon::Configuration::load().
bool dtn::daemon::Configuration::Security::TLSEncryptionDisabled | ( | ) | const |
Checks if Encryption in TLS shall be disabled.
Definition at line 1231 of file Configuration.cpp.
bool dtn::daemon::Configuration::Security::TLSRequired | ( | ) | const |
Checks if TLS is required.
Definition at line 1194 of file Configuration.cpp.
References dtn::utils::Clock::getRating().
Referenced by dtn::net::TCPConnection::initiateExtendedHandshake().
|
friend |
Definition at line 403 of file Configuration.h.