35 #include <QStringList>
39 #include "libsignoncommon.h"
40 #include "authsession.h"
41 #include "identityinfo.h"
42 #include "signonerror.h"
44 #define SSO_NEW_IDENTITY 0
48 typedef QPointer<AuthSession> AuthSessionP;
62 friend class IdentityImpl;
73 InternalServerError = 2,
74 InternalCommunicationError = 3,
76 PermissionDeniedError = 4,
81 MethodNotAvailableError,
90 CredentialsNotAvailableError
97 Identity(
const quint32
id = SSO_NEW_IDENTITY,
111 QObject *parent = 0);
122 static Identity *existingIdentity(
const quint32
id, QObject *parent = 0);
147 void queryAvailableMethods();
157 AuthSessionP createSession(
const QString &methodName);
164 void destroySession(
const AuthSessionP &session);
181 void requestCredentialsUpdate(
const QString &message = QString());
231 void addReference(
const QString &reference = QString());
245 void removeReference(
const QString &reference = QString());
275 void verifyUser(
const QString &message = QString());
290 void verifyUser(
const QVariantMap ¶ms);
303 void verifySecret(
const QString &secret);
391 class IdentityImpl *impl;
definition for Signon error handling.
Contains identity information.
Represents a database entry for a single identity.
void error(const SignOn::Error &err)
Emitted when an error occurs while performing an operation.
void secretVerified(const bool valid)
Emitted when secret verification is completed.
IdentityError
Codes for errors that may be reported by Identity objects.
void referenceAdded()
Emitted when references are added by addReference() method and change has been successfully stored on...
void info(const SignOn::IdentityInfo &info)
Emitted when credentials passed by queryInfo() method.
void signedOut()
Emitted when the identity is signed out.
void methodsAvailable(const QStringList &methods)
Emitted when the list of available mechanisms has been obtained for identity.
void referenceRemoved()
Emitted when references are removed by removeReference() method and change has been successfully stor...
void credentialsStored(const quint32 id)
Emitted when credentials passed by storeCredentials() method have been successfully stored on the ser...
void removed()
Emitted when the identity is removed.
void userVerified(const bool valid)
Emitted when the user verification is completed.