OW_NAMESPACE::AuthManager Class Reference

#include <OW_AuthManager.hpp>

Inheritance diagram for OW_NAMESPACE::AuthManager:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AuthManager ()
 ~AuthManager ()
virtual String getName () const
 Every service may have a name.
virtual void init (const ServiceEnvironmentIFCRef &env)
 init() will be called to give the derived class an opportunity to initialize itself.
virtual void shutdown ()
 The service must shutdown completely before returning from this function.
bool authenticate (String &userName, const String &info, String &details, OperationContext &context)

Private Attributes

AuthenticatorIFCRef m_authenticator

Detailed Description

Definition at line 44 of file OW_AuthManager.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::AuthManager::AuthManager  ) 
 

Definition at line 59 of file OW_AuthManager.cpp.

OW_NAMESPACE::AuthManager::~AuthManager  ) 
 

Definition at line 64 of file OW_AuthManager.cpp.


Member Function Documentation

bool OW_NAMESPACE::AuthManager::authenticate String userName,
const String info,
String details,
OperationContext context
 

Definition at line 124 of file OW_AuthManager.cpp.

References context, and m_authenticator.

String OW_NAMESPACE::AuthManager::getName  )  const [virtual]
 

Every service may have a name.

The name is used to calculate dependencies, other services can return the name from getDependencies(), to instruct the cimom about which order to start and shutdown all the services. The default is to have no name, in that case, no other service can depend on it.

Reimplemented from OW_NAMESPACE::ServiceIFC.

Definition at line 69 of file OW_AuthManager.cpp.

References OW_NAMESPACE::ServiceIFCNames::AuthManager.

void OW_NAMESPACE::AuthManager::init const ServiceEnvironmentIFCRef env  )  [virtual]
 

init() will be called to give the derived class an opportunity to initialize itself.

Do not create threads which interact with the environment until start() is called. During the loading/initializing phase, the environment is single-threaded.

Parameters:
env The service's interface to it's environment. A copy of this may be saved and re-used. All copies of env or objects obtained by calling member functions of env should be set to 0 in shutdown() to prevent circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 75 of file OW_AuthManager.cpp.

References OW_NAMESPACE::ConfigOpts::AUTHENTICATION_MODULE_opt, OW_NAMESPACE::COMPONENT_NAME, env, OW_NAMESPACE::Exception::getMessage(), logger, m_authenticator, OW_DEFAULT_AUTHENTICATION_MODULE, OW_LOG_FATAL_ERROR, OW_LOG_INFO, OW_THROW, OW_NAMESPACE::SharedLibraryReference< T >::setNull(), and OW_NAMESPACE::Exception::type().

void OW_NAMESPACE::AuthManager::shutdown  )  [virtual]
 

The service must shutdown completely before returning from this function.

All copies of the service environment or objects obtained from it should be set to 0 to avoid circular reference counts.

Implements OW_NAMESPACE::ServiceIFC.

Definition at line 137 of file OW_AuthManager.cpp.

References m_authenticator, and OW_NAMESPACE::SharedLibraryReference< T >::setNull().


Member Data Documentation

AuthenticatorIFCRef OW_NAMESPACE::AuthManager::m_authenticator [private]
 

Definition at line 55 of file OW_AuthManager.hpp.

Referenced by authenticate(), init(), and shutdown().


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