signon
8.42
|
Daemon side representation of authentication session. More...
#include <signonsessioncore.h>
Public Slots | |
QStringList | queryAvailableMechanisms (const QStringList &wantedMechanisms) |
void | process (const QDBusConnection &connection, const QDBusMessage &message, const QVariantMap &sessionDataVa, const QString &mechanism, const QString &cancelKey) |
void | cancel (const QString &cancelKey) |
void | setId (quint32 id) |
void | credentialsSystemReady () |
![]() | |
static void | destroyUnused () |
Deletes all disposable object for which the inactivity time has elapsed. |
Signals | |
void | stateChanged (const QString &requestId, int state, const QString &message) |
Public Member Functions | |
virtual | ~SignonSessionCore () |
quint32 | id () const |
QString | method () const |
bool | setupPlugin () |
void | destroy () |
Performs any predestruction operations and the destruction itself. | |
![]() | |
SignonDisposable (int maxInactivity, QObject *parent) | |
Construct an object that can be automatically destroyed after having being unused for seconds. | |
void | keepInUse () const |
Mark the object as used. | |
void | setAutoDestruct (bool value=true) const |
Mark the object as used. |
Static Public Member Functions | |
static SignonSessionCore * | sessionCore (const quint32 id, const QString &method, SignonDaemon *parent) |
static void | stopAllAuthSessions () |
static QStringList | loadedPluginMethods (const QString &method) |
![]() | |
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. |
Protected Member Functions | |
SignonSessionCore (quint32 id, const QString &method, int timeout, SignonDaemon *parent) | |
void | childEvent (QChildEvent *ce) |
void | customEvent (QEvent *event) |
![]() | |
virtual | ~SignonDisposable () |
Daemon side representation of authentication session.
Definition at line 50 of file signonsessioncore.h.
|
virtual |
Definition at line 97 of file signonsessioncore.cpp.
|
protected |
Definition at line 75 of file signonsessioncore.cpp.
References credentialsSystemReady(), SignonDaemonNS::CredentialsAccessManager::instance(), SIGNON_UI_DAEMON_OBJECTPATH, and SIGNON_UI_SERVICE.
Referenced by sessionCore().
|
slot |
Definition at line 255 of file signonsessioncore.cpp.
References SignonDaemonNS::PluginProxy::cancel(), SignonUiAdaptor::cancelUiRequest(), SignonDaemonNS::RequestData::m_conn, SignonDaemonNS::RequestData::m_msg, and TRACE.
Referenced by SignonDaemonNS::SignonAuthSession::cancel().
|
protected |
Definition at line 807 of file signonsessioncore.cpp.
References SignonDaemonNS::SignonDisposable::destroyUnused(), and SignonDaemonNS::SignonDisposable::keepInUse().
|
slot |
Definition at line 932 of file signonsessioncore.cpp.
Referenced by SignonSessionCore().
|
protected |
Definition at line 815 of file signonsessioncore.cpp.
References SIGNON_SECURE_STORAGE_AVAILABLE, SIGNON_SECURE_STORAGE_NOT_AVAILABLE, and TRACE.
|
virtual |
Performs any predestruction operations and the destruction itself.
Reimplement this for smoother control.
Reimplemented from SignonDaemonNS::SignonDisposable.
Definition at line 915 of file signonsessioncore.cpp.
References SignonDaemonNS::PluginProxy::isProcessing(), SignonDaemonNS::SignonDisposable::keepInUse(), sessionsOfNonStoredCredentials, and sessionsOfStoredCredentials.
quint32 SignonSessionCore::id | ( | ) | const |
Definition at line 140 of file signonsessioncore.cpp.
References SignonDaemonNS::SignonDisposable::keepInUse(), and TRACE.
Referenced by setId().
|
static |
Definition at line 211 of file signonsessioncore.cpp.
References method(), queryAvailableMechanisms(), sessionsOfNonStoredCredentials, and sessionsOfStoredCredentials.
QString SignonSessionCore::method | ( | ) | const |
Definition at line 147 of file signonsessioncore.cpp.
References SignonDaemonNS::SignonDisposable::keepInUse(), and TRACE.
Referenced by loadedPluginMethods().
|
slot |
Definition at line 238 of file signonsessioncore.cpp.
References SignonDaemonNS::CredentialsAccessManager::instance(), and SignonDaemonNS::SignonDisposable::keepInUse().
Referenced by SignonDaemonNS::SignonAuthSession::process().
|
slot |
Definition at line 227 of file signonsessioncore.cpp.
References SignonDaemonNS::SignonDisposable::keepInUse(), and SignonDaemonNS::PluginProxy::mechanisms().
Referenced by loadedPluginMethods(), and SignonDaemonNS::SignonAuthSession::queryAvailableMechanisms().
|
static |
Definition at line 108 of file signonsessioncore.cpp.
References SignonDaemonNS::SignonDaemon::authSessionTimeout(), sessionsOfNonStoredCredentials, sessionsOfStoredCredentials, setupPlugin(), SignonSessionCore(), and TRACE.
Referenced by SignonDaemonNS::SignonAuthSession::getAuthSessionObjectPath().
|
slot |
Definition at line 299 of file signonsessioncore.cpp.
References id(), SignonDaemonNS::SignonDisposable::keepInUse(), sessionsOfNonStoredCredentials, and sessionsOfStoredCredentials.
Referenced by SignonDaemonNS::SignonAuthSession::setId().
bool SignonSessionCore::setupPlugin | ( | ) |
Definition at line 154 of file signonsessioncore.cpp.
References SignonDaemonNS::PluginProxy::createNewPluginProxy(), stateChanged(), and TRACE.
Referenced by sessionCore().
|
signal |
Referenced by setupPlugin().
|
static |
Definition at line 202 of file signonsessioncore.cpp.
References sessionsOfNonStoredCredentials, and sessionsOfStoredCredentials.