Cross-Platform C++

ot::auxil
class NetAccessHelper

#include "ot/auxil/NetAccessHelper.h"

ot::net::Authenticator ot::ManagedObject




Constructor/Destructor Summary
NetAccessHelper(const String& HTTPProxy, const String& proxyUserOption, const String& proxyPasswordOption, const String& userOption, const String& passwordOption)
        

Method Summary
protected  virtual bool getPasswordAuthentication(InetAddress* pAddr, int port, const String& protocol, const String& prompt, const String& scheme, bool bProxy, String& userRet, String& passwordRet)
         Called when password authorization is needed.

Methods inherited from class ot::net::Authenticator
RequestPasswordAuthentication, SetDefault

Methods inherited from class ot::ManagedObject
addRef, getRefCount, onFinalRelease, operator=, release

Constructor/Destructor Detail

NetAccessHelper

 NetAccessHelper(const String& HTTPProxy,
                 const String& proxyUserOption,
                 const String& proxyPasswordOption,
                 const String& userOption,
                 const String& passwordOption)


Method Detail

getPasswordAuthentication

protected virtual bool getPasswordAuthentication(InetAddress* pAddr,
                                                 int port,
                                                 const String& protocol,
                                                 const String& prompt,
                                                 const String& scheme,
                                                 bool bProxy,
                                                 String& userRet,
                                                 String& passwordRet)
Called when password authorization is needed. Derived classes must provide an implementation of this pure virtual function.

Parameters:
pAddr - the IP address of the server requesting authentication
port - the port number of the remote server
protocol - the name of the protocol being used, e.g. 'HTTP'
prompt - a string from the server indicating why a password is required
scheme - the authentication scheme being used
bProxy - indicates if the authentication request is coming from the local proxy server
userRet - a return parameter for the required user name
passwordRet - a return parameter for the required password
Returns:
true if userRet and passwordRet have been set; false otherwise


Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2003 ElCel Technology   Trademark Acknowledgements