OW_NAMESPACE::ListenerAuthenticator Class Reference

#include <OW_ListenerAuthenticator.hpp>

Inheritance diagram for OW_NAMESPACE::ListenerAuthenticator:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ListenerAuthenticator ()
 Allocate a new ListenerAuthenticator (auth module used by a CIM Listener product).
virtual ~ListenerAuthenticator ()
String getNewCredentials ()
 generate a new random name/password in the form "<name>:<password>"
void removeCredentials (const String &creds)
 Remove a set of credentials from the name/password map.

Protected Member Functions

virtual bool doAuthenticate (String &userName, const String &info, String &details, OperationContext &context)
 Authenticates a user.
virtual void doInit (ServiceEnvironmentIFCRef)
 Called when authenticator is loaded Exception is thrown because other classes which derive from this may need to throw exceptions in init().

Private Attributes

Map< String, Stringm_passwdMap

Detailed Description

Definition at line 47 of file OW_ListenerAuthenticator.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::ListenerAuthenticator::ListenerAuthenticator  ) 
 

Allocate a new ListenerAuthenticator (auth module used by a CIM Listener product).

Definition at line 44 of file OW_ListenerAuthenticator.cpp.

OW_NAMESPACE::ListenerAuthenticator::~ListenerAuthenticator  )  [virtual]
 

Definition at line 48 of file OW_ListenerAuthenticator.cpp.


Member Function Documentation

bool OW_NAMESPACE::ListenerAuthenticator::doAuthenticate String userName,
const String info,
String details,
OperationContext context
[protected, virtual]
 

Authenticates a user.

Parameters:
userName The name of the of the user being authenticated
info The authentication credentials
details An out parameter used to provide information as to why the authentication failed
context An operation context. .
Returns:
True if user is authenticated

Implements OW_NAMESPACE::AuthenticatorIFC.

Definition at line 53 of file OW_ListenerAuthenticator.cpp.

References OW_NAMESPACE::String::empty().

void OW_NAMESPACE::ListenerAuthenticator::doInit ServiceEnvironmentIFCRef   )  [protected, virtual]
 

Called when authenticator is loaded Exception is thrown because other classes which derive from this may need to throw exceptions in init().

Reimplemented from OW_NAMESPACE::AuthenticatorIFC.

Definition at line 80 of file OW_ListenerAuthenticator.cpp.

String OW_NAMESPACE::ListenerAuthenticator::getNewCredentials  ) 
 

generate a new random name/password in the form "<name>:<password>"

Returns:
a new set of credentials.

Definition at line 85 of file OW_ListenerAuthenticator.cpp.

References OW_NAMESPACE::String::erase(), OW_NAMESPACE::CryptographicRandomNumber::getNextNumber(), i, OW_NAMESPACE::AuthenticatorIFC::m_mutex, and name.

void OW_NAMESPACE::ListenerAuthenticator::removeCredentials const String creds  ) 
 

Remove a set of credentials from the name/password map.

Parameters:
creds the credentials to be removed. They have the form "<name>:<password>"

Definition at line 119 of file OW_ListenerAuthenticator.cpp.

References OW_NAMESPACE::Map< Key, T, Compare >::end(), OW_NAMESPACE::Map< Key, T, Compare >::erase(), OW_NAMESPACE::Map< Key, T, Compare >::find(), OW_NAMESPACE::String::indexOf(), OW_NAMESPACE::AuthenticatorIFC::m_mutex, m_passwdMap, name, and OW_NAMESPACE::String::substring().


Member Data Documentation

Map<String, String> OW_NAMESPACE::ListenerAuthenticator::m_passwdMap [private]
 

Definition at line 84 of file OW_ListenerAuthenticator.hpp.

Referenced by removeCredentials().


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