#include <OW_ListenerAuthenticator.hpp>
Inheritance diagram for OW_NAMESPACE::ListenerAuthenticator:
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, String > | m_passwdMap |
Definition at line 47 of file OW_ListenerAuthenticator.hpp.
|
Allocate a new ListenerAuthenticator (auth module used by a CIM Listener product).
Definition at line 44 of file OW_ListenerAuthenticator.cpp. |
|
Definition at line 48 of file OW_ListenerAuthenticator.cpp. |
|
Authenticates a user.
Implements OW_NAMESPACE::AuthenticatorIFC. Definition at line 53 of file OW_ListenerAuthenticator.cpp. References OW_NAMESPACE::String::empty(). |
|
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. |
|
generate a new random name/password in the form "<name>:<password>"
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. |
|
Remove a set of credentials from the name/password map.
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(). |
|
Definition at line 84 of file OW_ListenerAuthenticator.hpp. Referenced by removeCredentials(). |