5 #ifndef AUTHENTICATIONUSER_H
6 #define AUTHENTICATIONUSER_H
8 #include <Cutelyst/Plugins/authentication_export.h>
9 #include <Cutelyst/paramsmultimap.h>
10 #include <Cutelyst/plugin.h>
12 #include <QDataStream>
13 #include <QVariantMap>
17 class AuthenticationRealm;
61 [[nodiscard]]
bool isNull()
const;
66 [[nodiscard]]
QString authRealm();
71 void setAuthRealm(
const QString &authRealm);
76 [[nodiscard]]
inline QVariantMap data()
const;
81 inline void setData(
const QVariantMap &data);
118 m_data.insert(key,
value);
123 return m_data.value(key, defaultValue);
132 QDebug CUTELYST_PLUGIN_AUTHENTICATION_EXPORT operator<<(
QDebug dbg,
Container for user data retrieved from an AuthenticationStore.
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
void setData(const QVariantMap &data)
void insert(const QString &key, const QVariant &value)
The Cutelyst namespace holds all public Cutelyst API.
QVariant fromValue(T &&value)