Cutelyst  2.13.0
Public Member Functions | Protected Attributes | List of all members
Cutelyst::AuthenticationUser Class Reference

Public Member Functions

 AuthenticationUser ()
 Constructs a new AuthenticationUser object.
 AuthenticationUser (const QVariant &id)
 Constructs a new AuthenticationUser object with the given id.
QString authRealm ()
 Returns the authentication realm from which this user was retrieved.
QVariantMap data () const
QVariant id () const
void insert (const QString &key, const QVariant &value)
bool isNull () const
 Returns true if the object is null.
 operator QVariant () const
void setAuthRealm (const QString &authRealm)
 Sets the authentication realm from which this user was retrieved.
void setData (const QVariantMap &data)
void setId (const QVariant &id)
 Sets the unique user id restored from the store.
QVariant value (const QString &key, const QVariant &defaultValue=QVariant()) const

Protected Attributes

QVariantMap m_data

Detailed Description

Definition at line 31 of file authenticationuser.h.

Member Function Documentation

◆ id()

QVariant 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 Cutelyst::StoreHtpasswd::forSession(), and Cutelyst::StoreMinimal::forSession().