1 #ifndef TORCHTTPSERVERNONCE_H 2 #define TORCHTTPSERVERNONCE_H 12 #define DEFAULT_NONCE_LIFETIME_SECONDS 10 // expire 10 seconds after issue or last use 13 #define DEFAULT_NONCE_LIFETIME_REQUESTS 0 // unlimited uses 25 bool UseOnce(quint64 ClientCount,
const QDateTime &Current);
32 QDateTime m_startTime;
34 quint64 m_lifetimeInSeconds;
35 quint64 m_lifetimeInRequests;
38 #endif // TORCHTTPSERVERNONCE_H A class to encapsulate an incoming HTTP request.
~TorcHTTPServerNonce()=default
bool IsOutOfDate(const QDateTime &Current)
static void ProcessDigestAuth(TorcHTTPRequest &Request, bool Check=false)
A server nonce for Digest Access Authentication.
QString GetOpaque(void) const
bool UseOnce(quint64 ClientCount, const QDateTime &Current)