signon
8.57
|
Daemon side representation of identity. More...
#include <signonidentity.h>
Public Slots | |
quint32 | requestCredentialsUpdate (const QString &message) |
QVariantMap | getInfo () |
bool | addReference (const QString &reference) |
bool | removeReference (const QString &reference) |
bool | verifyUser (const QVariantMap ¶ms) |
bool | verifySecret (const QString &secret) |
void | remove () |
bool | signOut () |
quint32 | store (const QVariantMap &info) |
void | queryUiSlot (QDBusPendingCallWatcher *call) |
void | verifyUiSlot (QDBusPendingCallWatcher *call) |
![]() | |
static void | destroyUnused () |
Deletes all disposable object for which the inactivity time has elapsed. More... | |
Signals | |
void | unregistered () |
void | infoUpdated (int) |
void | stored (SignonIdentity *identity) |
Public Member Functions | |
void | destroy () |
Performs any predestruction operations and the destruction itself. More... | |
quint32 | id () const |
SignonIdentityInfo | queryInfo (bool &ok, bool queryPassword=true) |
quint32 | storeCredentials (const SignonIdentityInfo &info) |
![]() | |
SignonDisposable (int maxInactivity, QObject *parent) | |
Construct an object that can be automatically destroyed after having being unused for seconds. More... | |
void | keepInUse () const |
Mark the object as used. More... | |
void | setAutoDestruct (bool value=true) const |
Mark the object as used. More... | |
Static Public Member Functions | |
static SignonIdentity * | createIdentity (quint32 id, SignonDaemon *parent) |
![]() | |
static void | invokeOnIdle (int maxInactivity, QObject *object, const char *member) |
Invoke the specified method on when there are no disposable objects for more than seconds. More... | |
Friends | |
class | PendingCallWatcherWithContext |
class | SignonIdentityAdaptor |
Additional Inherited Members | |
![]() | |
virtual | ~SignonDisposable () |
Daemon side representation of identity.
Definition at line 50 of file signonidentity.h.
|
slot |
Definition at line 172 of file signonidentity.cpp.
References SignonDaemonNS::CredentialsDB::addReference(), SignonDaemonNS::AccessControlManagerHelper::appIdOfPeer(), BLAME, SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::AccessControlManagerHelper::instance(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, and TRACE.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::addReference().
|
static |
Definition at line 122 of file signonidentity.cpp.
References SignonDaemonNS::SignonDaemon::identityTimeout().
|
virtual |
Performs any predestruction operations and the destruction itself.
Reimplement this for smoother control.
Reimplemented from SignonDaemonNS::SignonDisposable.
Definition at line 127 of file signonidentity.cpp.
Referenced by SignonDaemonNS::SignonDaemon::getIdentity().
|
slot |
Definition at line 253 of file signonidentity.cpp.
References SignonDaemonNS::SignonIdentityInfo::isNew(), SignonDaemonNS::SignonDisposable::keepInUse(), queryInfo(), SignonDaemonNS::SignonIdentityInfo::removeSecrets(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, SignonDaemonNS::SignonIdentityInfo::toMap(), and TRACE.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::getInfo().
|
inline |
Definition at line 62 of file signonidentity.h.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::addReference(), SignonDaemonNS::SignonIdentityAdaptor::getInfo(), SignonDaemonNS::SignonIdentityAdaptor::remove(), SignonDaemonNS::SignonIdentityAdaptor::removeReference(), SignonDaemonNS::SignonIdentityAdaptor::requestCredentialsUpdate(), SignonDaemonNS::SignonIdentityAdaptor::signOut(), signOut(), SignonDaemonNS::SignonIdentityAdaptor::store(), SignonDaemonNS::SignonIdentityAdaptor::verifySecret(), and SignonDaemonNS::SignonIdentityAdaptor::verifyUser().
|
signal |
Referenced by storeCredentials().
SignonIdentityInfo SignonDaemonNS::SignonIdentity::queryInfo | ( | bool & | ok, |
bool | queryPassword = true |
||
) |
Definition at line 135 of file signonidentity.cpp.
References SignonDaemonNS::CredentialsDB::credentials(), SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::CredentialsDB::lastError(), SignonDaemonNS::SignonIdentityInfo::password(), and SignonDaemonNS::SignonIdentityInfo::setPassword().
Referenced by SignonDaemonNS::SignonDaemon::getIdentity(), getInfo(), requestCredentialsUpdate(), verifySecret(), and verifyUser().
|
slot |
Definition at line 532 of file signonidentity.cpp.
References BLAME, SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::CredentialsAccessManager::instance(), PendingCallWatcherWithContext, SignonDaemonNS::SignonDisposable::setAutoDestruct(), SignonDaemonNS::SignonIdentityInfo::setPassword(), TRACE, and SignonDaemonNS::CredentialsDB::updateCredentials().
Referenced by requestCredentialsUpdate().
|
slot |
Definition at line 351 of file signonidentity.cpp.
References SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), PendingCallWatcherWithContext, SignonDaemonNS::CredentialsDB::removeCredentials(), SignonUiAdaptor::removeIdentityData(), SignonDaemonNS::SignonDisposable::setAutoDestruct(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, and TRACE.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::remove().
|
slot |
Definition at line 192 of file signonidentity.cpp.
References SignonDaemonNS::AccessControlManagerHelper::appIdOfPeer(), BLAME, SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::AccessControlManagerHelper::instance(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), SignonDaemonNS::CredentialsDB::removeReference(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, and TRACE.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::removeReference().
|
slot |
Definition at line 212 of file signonidentity.cpp.
References BLAME, SignonDaemonNS::SignonIdentityInfo::caption(), PendingCallWatcherWithContext, SignonUiAdaptor::queryDialog(), queryInfo(), queryUiSlot(), SignonDaemonNS::SignonDisposable::setAutoDestruct(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, SignonDaemonNS::SignonIdentityInfo::storePassword(), TRACE, and SignonDaemonNS::SignonIdentityInfo::userName().
Referenced by SignonDaemonNS::SignonIdentityAdaptor::requestCredentialsUpdate().
|
slot |
Definition at line 392 of file signonidentity.cpp.
References SignonDaemonNS::CredentialsAccessManager::credentialsDB(), id(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), PendingCallWatcherWithContext, SignonDaemonNS::CredentialsDB::removeData(), SignonUiAdaptor::removeIdentityData(), SignonDaemonNS::SignonDisposable::setAutoDestruct(), and TRACE.
Referenced by SignonDaemonNS::SignonIdentityAdaptor::signOut().
|
slot |
Definition at line 459 of file signonidentity.cpp.
References SignonDaemonNS::AccessControlManagerHelper::appIdOfPeer(), SignonDaemonNS::AccessControlManagerHelper::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), SignonDaemonNS::SignonIdentityInfo::setMethods(), SignonDaemonNS::SignonIdentityInfo::setOwnerList(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, storeCredentials(), and SignonDaemonNS::SignonIdentityInfo::update().
Referenced by SignonDaemonNS::SignonIdentityAdaptor::store().
quint32 SignonDaemonNS::SignonIdentity::storeCredentials | ( | const SignonIdentityInfo & | info | ) |
Definition at line 499 of file signonidentity.cpp.
References BLAME, SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::CredentialsDB::errorOccurred(), infoUpdated(), SignonDaemonNS::CredentialsDB::insertCredentials(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonIdentityInfo::isNew(), stored(), TRACE, and SignonDaemonNS::CredentialsDB::updateCredentials().
Referenced by store().
|
signal |
Referenced by storeCredentials().
|
signal |
|
slot |
Definition at line 330 of file signonidentity.cpp.
References SignonDaemonNS::CredentialsDB::checkPassword(), SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::SignonIdentityInfo::id(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonDisposable::keepInUse(), queryInfo(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, TRACE, and SignonDaemonNS::SignonIdentityInfo::userName().
Referenced by SignonDaemonNS::SignonIdentityAdaptor::verifySecret().
|
slot |
Definition at line 621 of file signonidentity.cpp.
References BLAME, SignonDaemonNS::CredentialsAccessManager::credentialsDB(), SignonDaemonNS::CredentialsAccessManager::instance(), SignonDaemonNS::SignonIdentityInfo::password(), PendingCallWatcherWithContext, SignonDaemonNS::SignonDisposable::setAutoDestruct(), and TRACE.
|
slot |
Definition at line 296 of file signonidentity.cpp.
References BLAME, SignonDaemonNS::SignonIdentityInfo::caption(), SignonDaemonNS::SignonIdentityInfo::password(), queryInfo(), SIGNON_RETURN_IF_CAM_UNAVAILABLE, SignonDaemonNS::SignonIdentityInfo::storePassword(), and SignonDaemonNS::SignonIdentityInfo::userName().
Referenced by SignonDaemonNS::SignonIdentityAdaptor::verifyUser().
|
friend |
Definition at line 54 of file signonidentity.h.
Referenced by queryUiSlot(), remove(), requestCredentialsUpdate(), signOut(), and verifyUiSlot().
|
friend |
Definition at line 55 of file signonidentity.h.