Loading...
Searching...
No Matches
QXmppAuthenticationError.h
// SPDX-FileCopyrightText: 2024 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPAUTHENTICATIONERROR_H
#define QXMPPAUTHENTICATIONERROR_H
#include "QXmppGlobal.h"
#include <any>
namespace QXmpp {
struct AuthenticationError {
enum Type {
NotAuthorized,
AccountDisabled,
CredentialsExpired,
EncryptionRequired,
MechanismMismatch,
ProcessingError,
RequiredTasks,
};
Type type;
QString text;
std::any details;
};
} // namespace QXmpp
#endif // QXMPPAUTHENTICATIONERROR_H
QXmpp
Definition Algorithms.h:14
QXmpp::AuthenticationError
Definition QXmppAuthenticationError.h:19
QXmpp::AuthenticationError::details
std::any details
Protocol-specific details provided to the error.
Definition QXmppAuthenticationError.h:43
QXmpp::AuthenticationError::type
Type type
Type of the authentication error.
Definition QXmppAuthenticationError.h:39
QXmpp::AuthenticationError::text
QString text
Error message from the server.
Definition QXmppAuthenticationError.h:41
QXmpp::AuthenticationError::Type
Type
Describes the type of the authentication error.
Definition QXmppAuthenticationError.h:21
QXmpp::AuthenticationError::CredentialsExpired
@ CredentialsExpired
Used credentials are not valid anymore.
Definition QXmppAuthenticationError.h:27
QXmpp::AuthenticationError::NotAuthorized
@ NotAuthorized
The provided credentials have been rejected by the server.
Definition QXmppAuthenticationError.h:23
QXmpp::AuthenticationError::AccountDisabled
@ AccountDisabled
The server did not allow authentication because the account is currently disabled.
Definition QXmppAuthenticationError.h:25
QXmpp::AuthenticationError::ProcessingError
@ ProcessingError
Local error while processing authentication challenges.
Definition QXmppAuthenticationError.h:34
QXmpp::AuthenticationError::EncryptionRequired
@ EncryptionRequired
Authentication is only allowed with an encrypted connection.
Definition QXmppAuthenticationError.h:29
QXmpp::AuthenticationError::MechanismMismatch
@ MechanismMismatch
Definition QXmppAuthenticationError.h:32
QXmpp::AuthenticationError::RequiredTasks
@ RequiredTasks
The server requested for tasks that are not supported.
Definition QXmppAuthenticationError.h:36