OW_NAMESPACE::LocalAuthentication Class Reference

#include <OW_LocalAuthentication.hpp>

Inheritance diagram for OW_NAMESPACE::LocalAuthentication:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LocalAuthentication (const LoggerRef &logger)
 ~LocalAuthentication ()
bool authenticate (String &userName, const String &info, HTTPSvrConnection *htcon)

Private Member Functions

String createNewChallenge (const String &uid, const String &userName)
void cleanupEntry (const AuthEntry &entry)
void cleanupStaleEntries ()
 LocalAuthentication (const LocalAuthentication &)
LocalAuthenticationoperator= (const LocalAuthentication &)

Private Attributes

std::vector< AuthEntrym_authEntries
LoggerRef m_logger

Classes

struct  AuthEntry

Detailed Description

Definition at line 49 of file OW_LocalAuthentication.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::LocalAuthentication::LocalAuthentication const LoggerRef logger  ) 
 

Definition at line 146 of file OW_LocalAuthentication.cpp.

References OW_NAMESPACE::LocalAuthenticationCommon::initializeDir(), OW_NAMESPACE::initializeHelper(), and OW_NAMESPACE::useHelper().

OW_NAMESPACE::LocalAuthentication::~LocalAuthentication  ) 
 

Definition at line 160 of file OW_LocalAuthentication.cpp.

References cleanupEntry(), i, and m_authEntries.

OW_NAMESPACE::LocalAuthentication::LocalAuthentication const LocalAuthentication  )  [private]
 


Member Function Documentation

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

Definition at line 262 of file OW_LocalAuthentication.cpp.

References cleanupStaleEntries(), OW_NAMESPACE::String::empty(), OW_NAMESPACE::parseInfo(), and OW_NAMESPACE::HTTPSvrConnection::setErrorDetails().

void OW_NAMESPACE::LocalAuthentication::cleanupEntry const AuthEntry entry  )  [private]
 

Definition at line 395 of file OW_LocalAuthentication.cpp.

References OW_NAMESPACE::cleanupEntryHelper(), OW_NAMESPACE::LocalAuthentication::AuthEntry::cookie, OW_NAMESPACE::LocalAuthentication::AuthEntry::fileName, OW_LOG_ERROR, OW_NAMESPACE::FileSystem::removeFile(), and OW_NAMESPACE::useHelper().

Referenced by cleanupStaleEntries(), and ~LocalAuthentication().

void OW_NAMESPACE::LocalAuthentication::cleanupStaleEntries  )  [private]
 

Definition at line 412 of file OW_LocalAuthentication.cpp.

References OW_NAMESPACE::DateTime::addMinutes(), cleanupEntry(), m_authEntries, and OW_NAMESPACE::DateTime::setToCurrent().

Referenced by authenticate().

String OW_NAMESPACE::LocalAuthentication::createNewChallenge const String uid,
const String userName
[private]
 

Definition at line 375 of file OW_LocalAuthentication.cpp.

References OW_NAMESPACE::LocalAuthentication::AuthEntry::cookie, OW_NAMESPACE::LocalAuthentication::AuthEntry::creationTime, OW_NAMESPACE::LocalAuthentication::AuthEntry::fileName, OW_NAMESPACE::generateNewCookieFile(), OW_NAMESPACE::generateNewNonce(), m_authEntries, OW_NAMESPACE::LocalAuthentication::AuthEntry::nonce, OW_NAMESPACE::DateTime::setToCurrent(), and OW_NAMESPACE::LocalAuthentication::AuthEntry::userName.

LocalAuthentication& OW_NAMESPACE::LocalAuthentication::operator= const LocalAuthentication  )  [private]
 


Member Data Documentation

std::vector<AuthEntry> OW_NAMESPACE::LocalAuthentication::m_authEntries [private]
 

Definition at line 72 of file OW_LocalAuthentication.hpp.

Referenced by cleanupStaleEntries(), createNewChallenge(), and ~LocalAuthentication().

LoggerRef OW_NAMESPACE::LocalAuthentication::m_logger [private]
 

Definition at line 73 of file OW_LocalAuthentication.hpp.


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