ot::auxil
class NetAccessHelper
#include "ot/auxil/NetAccessHelper.h"
| Constructor/Destructor Detail |
NetAccessHelper
NetAccessHelper(const String& HTTPProxy,
const String& proxyUserOption,
const String& proxyPasswordOption,
const String& userOption,
const String& passwordOption)
-
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
Found a bug or missing feature? Please email us at support@elcel.com