Cutelyst  1.11.0
Public Member Functions | List of all members
Cutelyst::AuthenticationUser Class Reference
Inheritance diagram for Cutelyst::AuthenticationUser:
Inheritance graph

Public Member Functions

 AuthenticationUser ()
 Constructs a new AuthenticationUser object.
 AuthenticationUser (const QString &id)
 Constructs a new AuthenticationUser object with the given id.
AuthenticationRealmauthRealm ()
 Returns the authentication realm from which this user was retrieved.
virtual bool checkPassword (const QString &password) const
 Verifies the user password. More...
QString id () const
bool isNull () const
 Returns true if the object is null.
void setAuthRealm (AuthenticationRealm *authRealm)
 Sets the authentication realm from which this user was retrieved.
void setId (const QString &id)
 Sets the unique user id restored from the store.

Detailed Description

Definition at line 31 of file authenticationuser.h.

Member Function Documentation

bool AuthenticationUser::checkPassword ( const QString &  password) const

UNUSED at the moment

Definition at line 64 of file authenticationuser.cpp.

References id(), and setId().

Referenced by Cutelyst::CredentialHttp::authenticate(), and Cutelyst::CredentialPassword::hmac().

QString AuthenticationUser::id ( ) const

A unique ID by which a AuthenticationUser can be retrieved from the store.

Definition at line 39 of file authenticationuser.cpp.

Referenced by checkPassword(), Cutelyst::StoreHtpasswd::forSession(), Cutelyst::StoreMinimal::forSession(), and setId().