|
|
|
Location:
http\mhttpauthenticationcallback.h
class MHTTPAuthenticationCallback
Supported from 7.0
Abstract interface 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, implement GetCredentialsL() in a derived class. 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 authentication credentials.
Note that the first three 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 to whom they are giving their credentials, and how securely they will be transmitted.
|
|
|
inline void InstallAuthenticationL(RHTTPSession aSession);
Installs the callback into the session.
This is typically called from the implementation class's ConstructL().
|
|