signon  8.42
SignonDaemonNS::CAMConfiguration Class Reference

Configuration object for the CredentialsAccessManager - CAM. More...

#include <credentialsaccessmanager.h>

Public Member Functions

 CAMConfiguration ()
 Constructs a CAMConfiguration object with the default configuration - encryption in use.
void serialize (QIODevice *device)
 Serializes the CAMConfiguration object as string to a specific IODevice.
QString metadataDBPath () const
 Returns the path to the metadata DB.
QString cryptoManagerName () const
 Returns the name of the CryptoManager to use.
QString accessControlManagerName () const
 Returns the name of the AccessControlManager to use.
bool useEncryption () const
QString secretsStorageName () const
 Returns the name of the SecretsStorage to use.
void setStoragePath (const QString &storagePath)
void addSetting (const QString &key, const QVariant &value)

Public Attributes

QString m_storagePath
 The base directory for storage.
QString m_dbName
 The database file name.
QString m_secretsDbName
 The credentials database file name.
QByteArray m_encryptionPassphrase
 Passphrase used for opening encrypted FS.
QVariantMap m_settings

Detailed Description

Configuration object for the CredentialsAccessManager - CAM.

Definition at line 104 of file credentialsaccessmanager.h.

Constructor & Destructor Documentation

CAMConfiguration::CAMConfiguration ( )

Constructs a CAMConfiguration object with the default configuration - encryption in use.

Definition at line 56 of file credentialsaccessmanager.cpp.

References setStoragePath(), and signonDefaultStoragePath.

Member Function Documentation

QString CAMConfiguration::accessControlManagerName ( ) const

Returns the name of the AccessControlManager to use.

Definition at line 98 of file credentialsaccessmanager.cpp.

References m_settings.

Referenced by SignonDaemonNS::CredentialsAccessManager::init(), SignonDaemonNS::CredentialsAccessManager::initExtension(), and serialize().

void SignonDaemonNS::CAMConfiguration::addSetting ( const QString &  key,
const QVariant &  value 
)
inline
QString CAMConfiguration::cryptoManagerName ( ) const
QString CAMConfiguration::metadataDBPath ( ) const

Returns the path to the metadata DB.

Definition at line 87 of file credentialsaccessmanager.cpp.

References m_dbName, and m_storagePath.

Referenced by serialize().

QString CAMConfiguration::secretsStorageName ( ) const

Returns the name of the SecretsStorage to use.

Definition at line 109 of file credentialsaccessmanager.cpp.

References m_settings.

Referenced by SignonDaemonNS::CredentialsAccessManager::init(), SignonDaemonNS::CredentialsAccessManager::initExtension(), and serialize().

void CAMConfiguration::serialize ( QIODevice *  device)

Serializes the CAMConfiguration object as string to a specific IODevice.

Parameters
device,mustnot be null.

Definition at line 64 of file credentialsaccessmanager.cpp.

References accessControlManagerName(), cryptoManagerName(), metadataDBPath(), secretsStorageName(), and useEncryption().

Referenced by SignonDaemonNS::CredentialsAccessManager::init().

void CAMConfiguration::setStoragePath ( const QString &  storagePath)
bool CAMConfiguration::useEncryption ( ) const

Member Data Documentation

QString SignonDaemonNS::CAMConfiguration::m_dbName
QByteArray SignonDaemonNS::CAMConfiguration::m_encryptionPassphrase

Passphrase used for opening encrypted FS.

Definition at line 149 of file credentialsaccessmanager.h.

Referenced by SignonDaemonNS::SignonDaemonConfiguration::setEncryptionPassphrase().

QString SignonDaemonNS::CAMConfiguration::m_secretsDbName

The credentials database file name.

Definition at line 148 of file credentialsaccessmanager.h.

QVariantMap SignonDaemonNS::CAMConfiguration::m_settings
QString SignonDaemonNS::CAMConfiguration::m_storagePath

The base directory for storage.

Definition at line 146 of file credentialsaccessmanager.h.

Referenced by metadataDBPath(), and setStoragePath().


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