98 void addRealm(std::shared_ptr<AuthenticationRealm> realm);
103 void addRealm(std::shared_ptr<AuthenticationStore> store,
104 std::shared_ptr<AuthenticationCredential> credential,
105 const QString &name = QLatin1String(defaultRealm));
110 [[nodiscard]] std::shared_ptr<AuthenticationRealm>
111 realm(
const QString &name = QLatin1String(defaultRealm))
const;
116 [[nodiscard]]
static bool authenticate(
Context *c,
118 const QString &realm = QLatin1String(defaultRealm));
123 [[nodiscard]]
inline static bool
124 authenticate(
Context *c,
const QString &realm = QLatin1String(defaultRealm));
133 const QString &realm = QLatin1String(defaultRealm));
149 [[nodiscard]]
static bool userExists(
Context *c);
155 [[nodiscard]]
static bool userInRealm(
Context *c,
156 const QString &realmName = QLatin1String(defaultRealm));
162 static void logout(
Context *c);
167 AuthenticationPrivate *d_ptr;