#include <wx/webrequest.h>
Simple class containing the username and password to use for authenticating.
Public Member Functions | |
wxWebCredentials (const wxString &user=wxString(), const wxSecretValue &password=wxSecretValue()) | |
Create the new credentials object. More... | |
const wxString & | GetUser () const |
Return the user. More... | |
const wxSecretValue & | GetPassword () const |
Return the password. More... | |
wxWebCredentials::wxWebCredentials | ( | const wxString & | user = wxString() , |
const wxSecretValue & | password = wxSecretValue() |
||
) |
Create the new credentials object.
Note that the password is a wxSecretValue object, to construct it from a string you need to explicitly use wxSecretValue ctor.
const wxSecretValue & wxWebCredentials::GetPassword | ( | ) | const |
Return the password.
const wxString & wxWebCredentials::GetUser | ( | ) | const |
Return the user.