OW_NAMESPACE::ClientAuthCBIFC Class Reference

An abstract base class used to provide a callback for retrieving a username and password. More...

#include <OW_ClientAuthCBIFC.hpp>

Inheritance diagram for OW_NAMESPACE::ClientAuthCBIFC:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool getCredentials (const String &realm, String &name, String &passwd, const String &details)=0
 The callback that is executed to retrieve the username and password.
virtual ~ClientAuthCBIFC ()

Detailed Description

An abstract base class used to provide a callback for retrieving a username and password.

If no username/password is provided in the URL, and the cimom returns a Unauthorized, this will be called so the client can repeat the request with authentication credentials.

Definition at line 53 of file OW_ClientAuthCBIFC.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::ClientAuthCBIFC::~ClientAuthCBIFC  )  [virtual]
 

Definition at line 43 of file OW_ClientAuthCBIFC.cpp.


Member Function Documentation

virtual bool OW_NAMESPACE::ClientAuthCBIFC::getCredentials const String realm,
String name,
String passwd,
const String details
[pure virtual]
 

The callback that is executed to retrieve the username and password.

Parameters:
realm A string describing the server or area within the server for which the client needs access (typically a URL).
name A out param String&. The function should assign a valid user name here. "" is not a valid user name.
passwd Similar to "name". The callback assigns the password here.
Returns:
true means the http client should retry the request with the provided name/password. false means a valid name/password were not obtained by the callback, and to http client has no reason to retry the request.


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