27 #include "libsignoncommon.h"
28 #include "authsession.h"
29 #include "authsessionimpl.h"
38 impl(new AuthSessionImpl(this, id, methodName))
42 qRegisterMetaType<SessionData>(
"SessionData");
43 qRegisterMetaType<AuthSessionState>(
"AuthSession::AuthSessionState");
45 if (qMetaTypeId<SessionData>() < QMetaType::User)
46 BLAME() <<
"AuthSession::AuthSession() - "
47 "SessionData meta type not registered.";
49 if (qMetaTypeId<AuthSessionState>() < QMetaType::User)
50 BLAME() <<
"AuthSession::AuthSession() - "
51 "AuthSessionState meta type not registered.";
55 AuthSession::~AuthSession()
67 impl->queryAvailableMechanisms(wantedMechanisms);
71 const QString &mechanism)
73 impl->process(sessionData, mechanism);
const QString name() const
Name of method for session.
void queryAvailableMechanisms(const QStringList &wantedMechanisms=QStringList())
Query list of available mechanisms.
void process(const SessionData &sessionData, const QString &mechanism=QString())
Processes sessionData in the authentication service.
void cancel()
Cancels the ongoing challenge.
AuthSession(quint32 id, const QString &methodName, QObject *parent=0)
Data container to hold values for authentication session.