Location:
mhttpauthenticationcallback.h
class MHTTPAuthenticationCallback;
The mixin that needs to be implemented if authentication is to be supported. This supplies the username and password when they are needed for authentication. To use, subclass off this class and implement GetCredentialsL. To install the class into a session, call InstallAuthenticationL.
Defined in MHTTPAuthenticationCallback
:
GetCredentialsL()
, InstallAuthenticationL()
virtual TBool GetCredentialsL(const TUriC8 &aURI, RString aRealm, RStringF aAuthenticationType, RString &aUsername, RString
&aPassword)=0;
Gets some credentials. Note that the first 3 parameters are informational and many clients may not have a use for them. Clients may want to display some or all of these parameters to the user, so that the user knows who they are giving their credentials to, and how securely they will be transmitted.
|
|
|
inline void InstallAuthenticationL(RHTTPSession aSession);
The session is opened, but no transactions have been created on it
Installs the callback into the session. Typicaly called from the implementation class's ConstructL().
The session supports authentication, and uses this API to get its credentials.
|
|