33 #include <QStringList>
37 #include "libsignoncommon.h"
38 #include "sessiondata.h"
39 #include "signonerror.h"
42 class AccessControlTest;
59 friend class IdentityImpl;
60 friend class AuthSessionImpl;
61 friend class SignOnTests::AccessControlTest;
71 InternalServerError = 2,
72 InternalCommunicationError = 3,
73 PermissionDeniedError = 4,
96 SessionNotStarted = 0,
115 AuthSession(quint32
id,
const QString &methodName, QObject *parent = 0);
124 const QString name()
const;
136 void queryAvailableMechanisms(
const QStringList &wantedMechanisms = QStringList());
168 const QString &mechanism = QString());
184 const QString &mechanism = QString()) {
185 process(sessionData, mechanism);
202 const QString &mechanism = QString()) {
203 process(sessionData, mechanism);
225 const QString &mechanism = QString()) {
226 process(params, mechanism);
271 const QString &message);
274 class AuthSessionImpl *impl;
Represents a session to authentication plugin/server.
void signMessage(const SessionData ¶ms, const QString &mechanism=QString())
Signs message by using secret stored into identity.
AuthSessionError
Codes for errors that may be reported by AuthSession objects.
@ InvalidCredentialsError
@ MechanismNotAvailableError
@ OperationNotSupportedError
void response(const SignOn::SessionData &sessionData)
Authentication response generated by the authentication service.
void error(const SignOn::Error &err)
Emitted when an error occurs while performing an operation.
void challenge(const SessionData &sessionData, const QString &mechanism=QString())
Sends a challenge to the authentication service.
void request(const SessionData &sessionData, const QString &mechanism=QString())
Sends a request to the authentication service.
AuthSessionState
Codes for the states of the AuthSession object.
void mechanismsAvailable(const QStringList &mechanisms)
Emitted when the list of available mechanisms have been obtained for identity.
void stateChanged(AuthSession::AuthSessionState state, const QString &message)
Provides the information about the state of the authentication request.
definition for Signon error handling.
Data container to hold values for authentication session.