NDLoginCallback Class Reference

Interface class providing a login verification mechanism. More...

List of all members.

Public Member Functions

virtual NDResult handleLoginCallback (NDIdentity *, const NDSocketAddress *)=0
 Handler for login verification.

Detailed Description

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().


Member Function Documentation

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.

Parameters:
ident an NDIdentity object containing login information
addr the socket address object for the connecting client
Returns:
NDRES_OK for Login accepted
NDRES_IGNORE for Login denied

Generated on Wed Jul 21 18:14:48 2010 for nd2 by  doxygen 1.6.1