version 1.3, 2002/01/24 19:10:32
|
version 1.4, 2002/03/21 22:11:15
|
|
|
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/String.h> | #include <Pegasus/Common/String.h> |
|
|
#include "Linkage.h" | #include "Linkage.h" |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
/** destructor. */ | /** destructor. */ |
virtual ~LocalAuthenticator() { }; | virtual ~LocalAuthenticator() { }; |
| |
/** authenticate. */ |
/** Verify the authentication of the requesting user. |
virtual Boolean authenticate( |
@param userName String containing the user name |
const String& userName, |
@param secretReceived String containing the authentication secret |
const String& password) = 0; |
sent by the client. |
|
@param secretKept String containing the authentication secret that |
/** authenticate. */ |
was sent to client as part of the challenge. |
|
@return true on successful authentication, false otherwise |
|
*/ |
virtual Boolean authenticate( | virtual Boolean authenticate( |
const String& userName, | const String& userName, |
const String& secretReceived, | const String& secretReceived, |
const String& secretKept) = 0; | const String& secretKept) = 0; |
| |
/** getAuthResponseHeader. */ |
/** Construct and return the Peagaus Local authentication challenge header |
|
@param authType String containing the authentication type |
|
@param userName String containing the user name |
|
@param challenge String to store the authentication challenge secret |
|
@return A string containing the authentication challenge header. |
|
*/ |
virtual String getAuthResponseHeader( | virtual String getAuthResponseHeader( |
const String& authType, | const String& authType, |
const String& userName, | const String& userName, |