29 #ifndef Pt_Http_Credentials_h
30 #define Pt_Http_Credentials_h
32 #include <Pt/Http/Api.h>
66 void set(
const std::string&
user,
const std::string& passwd)
74 void set(
const char*
user,
const char* passwd)
87 const std::string&
user()
const
109 #endif // Pt_Http_Credentials_h
void set(const char *user, const char *passwd)
Set user and password.
Definition: Credentials.h:74
std::string & user()
Returns the user name.
Definition: Credentials.h:82
std::string & password()
Returns the password.
Definition: Credentials.h:92
void set(const std::string &user, const std::string &passwd)
Set user and password.
Definition: Credentials.h:66
Credentials for authorization and authentication.
Definition: Credentials.h:42
const std::string & user() const
Returns the user name.
Definition: Credentials.h:87
Credential(const std::string &user, const std::string &passwd)
Construct with user and password.
Definition: Credentials.h:52
Credential()
Default Constructor.
Definition: Credentials.h:47
Credential(const char *user, const char *passwd)
Construct with user and password.
Definition: Credentials.h:59
const std::string & password() const
Returns the password.
Definition: Credentials.h:97