MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLRemoteAuthenticationCallback Class Referenceabstract

Detailed Description

This callback class is used by MapLink to request authentication credentials as part of network requests.

It is an abstract class, which requires clients to provide an implementation. Any caching of these credentials between requests must be handled by the client application.

Public Member Functions

virtual ~TSLRemoteAuthenticationCallback ()=0
 
virtual void onCredentialsRequired (TSLFileLoaderRemote *loader, TSLSimpleString &username, TSLSimpleString &password, const char *url)=0
 

Constructor & Destructor Documentation

◆ ~TSLRemoteAuthenticationCallback()

TSLRemoteAuthenticationCallback::~TSLRemoteAuthenticationCallback ( )
inlinepure virtual

Additional Declarations

Member Function Documentation

◆ onCredentialsRequired()

virtual void TSLRemoteAuthenticationCallback::onCredentialsRequired ( TSLFileLoaderRemote * loader,
TSLSimpleString & username,
TSLSimpleString & password,
const char * url )
pure virtual

A callback function used to supply credentials for authenticating remote requests.

This function will be called every time an HTTP 401 Unauthorised response is encountered. The callback will not be made if a valid set of credentials has been found in the TSLFileLoaderRemote cache.

To add credentials to the cache, call TSLFileLoaderRemote::addCredentials.

Parameters
loaderThe instance of TSLFileLoaderRemote that the callback was made by.
usernameUsed to supply a username to the server.
passwordUsed to supply a password to the server.
urlThe url of the request that triggered the callback.