Interface class providing a login verification mechanism. More...
Public Member Functions | |
| virtual NDResult | handleLoginCallback (NDIdentity *, const NDSocketAddress *)=0 |
| Handler for login verification. | |
Interface class providing a login verification mechanism.
An object of a class derived from NDLoginCallback is installed into an NDChannel upon calling NDChannel::becomeLoginAcceptor(). Any direct login attempt will automatically trigger NDLoginCallback::handleLoginCallback().
| NDResult NDLoginCallback::handleLoginCallback | ( | NDIdentity * | ident, | |
| const NDSocketAddress * | addr | |||
| ) | [pure virtual] |
Defines a class that handles login verification and Identity information. Provided a set of login credentials (username + password), the callback is responsible for determining validity of this login information and filling out an NDIdentity object that describes the user and their rights.
| ident | an NDIdentity object containing login information | |
| addr | the socket address object for the connecting client |
1.6.1