version 1.2, 2002/06/01 00:57:26
|
version 1.11, 2007/11/02 11:32:10
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
|
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
|
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Nag Boranna, Hewlett-Packard Company(nagaraja_boranna@hp.com) |
|
// |
|
// Modified By: |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef Pegasus_SecureBasicAuthenticator_h | #ifndef Pegasus_SecureBasicAuthenticator_h |
|
|
#include <Pegasus/Security/UserManager/UserManager.h> | #include <Pegasus/Security/UserManager/UserManager.h> |
| |
#include "BasicAuthenticator.h" | #include "BasicAuthenticator.h" |
#include "Linkage.h" |
|
| |
|
#include <Pegasus/Security/Authentication/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
/** This class provides Secure basic authentication implementation by extending | /** This class provides Secure basic authentication implementation by extending |
the BasicAuthenticator. | the BasicAuthenticator. |
*/ | */ |
class PEGASUS_SECURITY_LINKAGE SecureBasicAuthenticator : public BasicAuthenticator |
class PEGASUS_SECURITY_LINKAGE SecureBasicAuthenticator |
|
: public BasicAuthenticator |
{ | { |
public: | public: |
| |
|
|
const String& userName, | const String& userName, |
const String& password); | const String& password); |
| |
|
/** |
|
Verify whether the user is valid. |
|
@param userName String containing the user name |
|
@return true on successful validation, false otherwise |
|
*/ |
|
Boolean validateUser(const String& userName); |
|
|
/** Construct and return the HTTP Basic authentication challenge header | /** Construct and return the HTTP Basic authentication challenge header |
@return A string containing the authentication challenge header. | @return A string containing the authentication challenge header. |
*/ | */ |
|
|
UserManager* _userManager; | UserManager* _userManager; |
}; | }; |
| |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
| |
#endif /* Pegasus_SecureBasicAuthenticator_h */ | #endif /* Pegasus_SecureBasicAuthenticator_h */ |