IBR-DTNSuite  0.10
dtn::daemon::Configuration::Security Class Reference

#include <Configuration.h>

Inheritance diagram for dtn::daemon::Configuration::Security:
Inheritance graph
Collaboration diagram for dtn::daemon::Configuration::Security:
Collaboration graph

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::FilegetPath () const
 
const ibrcommon::FilegetBABDefaultKey () const
 
const ibrcommon::FilegetCertificate () const
 
const ibrcommon::FilegetKey () const
 
const ibrcommon::FilegetTrustedCAPath () 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
 

Detailed Description

Definition at line 394 of file Configuration.h.

Member Enumeration Documentation

Enumerator
SECURITY_LEVEL_NONE 
SECURITY_LEVEL_AUTHENTICATED 
SECURITY_LEVEL_ENCRYPTED 
SECURITY_LEVEL_SIGNED 

Definition at line 426 of file Configuration.h.

Constructor & Destructor Documentation

dtn::daemon::Configuration::Security::Security ( )
protected

Definition at line 101 of file Configuration.cpp.

dtn::daemon::Configuration::Security::~Security ( )
protectedvirtual

Definition at line 1049 of file Configuration.cpp.

Member Function Documentation

bool dtn::daemon::Configuration::Security::doTLS ( ) const

checks if TLS shall be activated

Returns
true if TLS is requested, false otherwise If TLS is requested, the TCP Convergence Layer Contact Header has the most significant bit of the flags field set to 1. If both peers support it, a TLS Handshake is executed.

Definition at line 1056 of file Configuration.cpp.

bool dtn::daemon::Configuration::Security::enabled ( ) const
const ibrcommon::File & dtn::daemon::Configuration::Security::getBABDefaultKey ( ) const

Get the path to the default BAB key

Definition at line 1078 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 1083 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 1088 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 1073 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 1068 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.

Returns
A file object for the path

Definition at line 1093 of file Configuration.cpp.

void dtn::daemon::Configuration::Security::load ( const ibrcommon::ConfigFile conf)
protectedvirtual
bool dtn::daemon::Configuration::Security::TLSEncryptionDisabled ( ) const

Checks if Encryption in TLS shall be disabled.

Returns
true if encryption shall be disabled, false otherwise

Definition at line 1098 of file Configuration.cpp.

bool dtn::daemon::Configuration::Security::TLSRequired ( ) const

Checks if TLS is required.

Returns
true if TLS is required, false otherwise If TLS is required, this node should abort TCP Convergence Layer Connections immediately if TLS is not available or fails

Definition at line 1061 of file Configuration.cpp.

References dtn::utils::Clock::getRating().

Referenced by dtn::net::TCPConnection::initiateExtendedHandshake().

Here is the call graph for this function:

Friends And Related Function Documentation

friend class Configuration
friend

Definition at line 396 of file Configuration.h.


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