98 void addRealm(std::shared_ptr<AuthenticationRealm> realm);
103 void addRealm(std::shared_ptr<AuthenticationStore> store,
104 std::shared_ptr<AuthenticationCredential> credential,
105 QStringView name = defaultRealm);
110 [[nodiscard]] std::shared_ptr<AuthenticationRealm> realm(QStringView name = defaultRealm)
const;
115 [[nodiscard]]
static bool
121 [[nodiscard]]
inline static bool authenticate(
Context *c, QStringView realm = defaultRealm);
144 [[nodiscard]]
static bool userExists(
Context *c);
150 [[nodiscard]]
static bool userInRealm(
Context *c, QStringView realmName = defaultRealm);
156 static void logout(
Context *c);
161 AuthenticationPrivate *d_ptr;