OW_NAMESPACE::DigestAuthentication Class Reference

#include <OW_DigestAuthentication.hpp>

Inheritance diagram for OW_NAMESPACE::DigestAuthentication:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::DigestAuthentication:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 DigestAuthentication (const String &passwdFile)
 ~DigestAuthentication ()
bool authenticate (String &userName, const String &info, HTTPSvrConnection *htcon)
String getChallenge (const String &hostname)

Private Member Functions

String getHash (const String &sUserName, const String &sRealm)
String generateNewNonce (void)

Private Attributes

Array< Stringm_asNonces
Array< time_t > m_aDateTimes
Map< String, Stringm_passwdMap

Detailed Description

Definition at line 47 of file OW_DigestAuthentication.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::DigestAuthentication::DigestAuthentication const String passwdFile  ) 
 

Definition at line 56 of file OW_DigestAuthentication.cpp.

References OW_NAMESPACE::String::empty(), and OW_THROW.

OW_NAMESPACE::DigestAuthentication::~DigestAuthentication  )  [inline]
 

Definition at line 51 of file OW_DigestAuthentication.hpp.


Member Function Documentation

bool OW_NAMESPACE::DigestAuthentication::authenticate String userName,
const String info,
HTTPSvrConnection htcon
 

Definition at line 170 of file OW_DigestAuthentication.cpp.

References OW_NAMESPACE::HTTPSvrConnection::addHeader(), OW_NAMESPACE::String::empty(), getChallenge(), OW_NAMESPACE::HTTPSvrConnection::getHostName(), and OW_NAMESPACE::HTTPSvrConnection::setErrorDetails().

String OW_NAMESPACE::DigestAuthentication::generateNewNonce void   )  [private]
 

Definition at line 91 of file OW_DigestAuthentication.cpp.

References OW_NAMESPACE::String::format(), OW_NAMESPACE::DateTime::get(), OW_NAMESPACE::CryptographicRandomNumber::getNextNumber(), i, and OW_NAMESPACE::DateTime::setToCurrent().

Referenced by getChallenge().

String OW_NAMESPACE::DigestAuthentication::getChallenge const String hostname  ) 
 

Definition at line 275 of file OW_DigestAuthentication.cpp.

References generateNewNonce().

Referenced by authenticate().

String OW_NAMESPACE::DigestAuthentication::getHash const String sUserName,
const String sRealm
[private]
 

Definition at line 83 of file OW_DigestAuthentication.cpp.

References m_passwdMap.


Member Data Documentation

Array< time_t > OW_NAMESPACE::DigestAuthentication::m_aDateTimes [private]
 

Definition at line 59 of file OW_DigestAuthentication.hpp.

Array< String > OW_NAMESPACE::DigestAuthentication::m_asNonces [private]
 

Definition at line 58 of file OW_DigestAuthentication.hpp.

Map<String, String> OW_NAMESPACE::DigestAuthentication::m_passwdMap [private]
 

Definition at line 60 of file OW_DigestAuthentication.hpp.

Referenced by getHash().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:16:48 2006 for openwbem by  doxygen 1.4.6