Torc  0.1
Public Member Functions | Static Public Member Functions | List of all members
TorcHTTPServerNonce Class Reference

#include <torchttpservernonce.h>

Public Member Functions

 TorcHTTPServerNonce ()
 
 TorcHTTPServerNonce (const QDateTime &Time)
 
 ~TorcHTTPServerNonce ()=default
 
QString GetOpaque (void) const
 
bool UseOnce (quint64 ClientCount, const QDateTime &Current)
 
bool IsOutOfDate (const QDateTime &Current)
 

Static Public Member Functions

static void ProcessDigestAuth (TorcHTTPRequest &Request, bool Check=false)
 A server nonce for Digest Access Authentication. More...
 

Detailed Description

Definition at line 15 of file torchttpservernonce.h.

Constructor & Destructor Documentation

TorcHTTPServerNonce::TorcHTTPServerNonce ( )

Definition at line 212 of file torchttpservernonce.cpp.

TorcHTTPServerNonce::TorcHTTPServerNonce ( const QDateTime &  Time)
explicit

Definition at line 224 of file torchttpservernonce.cpp.

TorcHTTPServerNonce::~TorcHTTPServerNonce ( )
default

Member Function Documentation

QString TorcHTTPServerNonce::GetOpaque ( void  ) const

Definition at line 235 of file torchttpservernonce.cpp.

bool TorcHTTPServerNonce::IsOutOfDate ( const QDateTime &  Current)

Definition at line 283 of file torchttpservernonce.cpp.

void TorcHTTPServerNonce::ProcessDigestAuth ( TorcHTTPRequest Request,
bool  Check = false 
)
static

A server nonce for Digest Access Authentication.

The default behaviour is to allow unlimited use of individual nonces and to expire them 10 seconds after their issue OR last use.

Todo:
Investigate browsers that request a new nonce for every request

Definition at line 46 of file torchttpservernonce.cpp.

bool TorcHTTPServerNonce::UseOnce ( quint64  ClientCount,
const QDateTime &  Current 
)

Definition at line 240 of file torchttpservernonce.cpp.


The documentation for this class was generated from the following files: