Version: 3.2.5
wxWebCredentials Class Reference

#include <wx/webrequest.h>

Detailed Description

Simple class containing the username and password to use for authenticating.


Library:  wxNet
Category:  Networking
See also

Public Member Functions

 wxWebCredentials (const wxString &user=wxString(), const wxSecretValue &password=wxSecretValue())
 Create the new credentials object. More...
const wxStringGetUser () const
 Return the user. More...
const wxSecretValueGetPassword () const
 Return the password. More...

Constructor & Destructor Documentation

◆ wxWebCredentials()

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.

Member Function Documentation

◆ GetPassword()

const wxSecretValue& wxWebCredentials::GetPassword ( ) const

Return the password.

See also

◆ GetUser()

const wxString& wxWebCredentials::GetUser ( ) const

Return the user.