PTLib  Version 2.10.4
PHTTPClientDigestAuthentication Class Reference

#include <http.h>

Inheritance diagram for PHTTPClientDigestAuthentication:
PHTTPClientAuthentication PObject

List of all members.

Public Types

enum  Algorithm { Algorithm_MD5, NumAlgorithms }

Public Member Functions

 PHTTPClientDigestAuthentication ()
PHTTPClientDigestAuthenticationoperator= (const PHTTPClientDigestAuthentication &auth)
virtual Comparison Compare (const PObject &other) const
 Compare the two objects and return their relative rank.
virtual PBoolean Parse (const PString &auth, PBoolean proxy)
virtual PBoolean Authorise (AuthObject &pdu) const
virtual PString GetAuthRealm () const
virtual void SetAuthRealm (const PString &r)
const PStringGetNonce () const
Algorithm GetAlgorithm () const
const PStringGetOpaque () const
bool GetStale () const

Protected Attributes

PString authRealm
PString nonce
Algorithm algorithm
PString opaque
bool qopAuth
bool qopAuthInt
bool stale
PString cnonce
PAtomicInteger nonceCount

Member Enumeration Documentation

Enumerator:
Algorithm_MD5 
NumAlgorithms 

Constructor & Destructor Documentation


Member Function Documentation

virtual Comparison PHTTPClientDigestAuthentication::Compare ( const PObject obj) const [virtual]

Compare the two objects and return their relative rank.

This function is usually overridden by descendent classes to yield the ranking according to the semantics of the object.

The default function is to use the CompareObjectMemoryDirect() function to do a byte wise memory comparison of the two objects.

Returns:
LessThan, EqualTo or GreaterThan according to the relative rank of the objects.

Reimplemented from PHTTPClientAuthentication.

virtual PString PHTTPClientDigestAuthentication::GetAuthRealm ( ) const [inline, virtual]

Reimplemented from PHTTPClientAuthentication.

References authRealm.

References nonce.

References opaque.

References stale.

PHTTPClientDigestAuthentication& PHTTPClientDigestAuthentication::operator= ( const PHTTPClientDigestAuthentication auth)
virtual PBoolean PHTTPClientDigestAuthentication::Parse ( const PString auth,
PBoolean  proxy 
) [virtual]
virtual void PHTTPClientDigestAuthentication::SetAuthRealm ( const PString r) [inline, virtual]

Reimplemented from PHTTPClientAuthentication.

References authRealm.


Member Data Documentation

Referenced by GetStale().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines