#include <MediaUserAuth.h>
Public Member Functions | |
| AuthData () | |
| AuthData (std::string &username, std::string &password) | |
| virtual | ~AuthData () |
| virtual bool | valid () const |
| Checks validity of authentication data. | |
| void | setUserName (std::string username) |
| void | setPassword (std::string password) |
| std::string | username () const |
| std::string | password () const |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
Private Attributes | |
| std::string | _username |
| std::string | _password |
This is the most generic class containing only username and password members.
Definition at line 27 of file MediaUserAuth.h.
| zypp::media::AuthData::AuthData | ( | ) | [inline] |
Definition at line 30 of file MediaUserAuth.h.
| zypp::media::AuthData::AuthData | ( | std::string & | username, | |
| std::string & | password | |||
| ) | [inline] |
Definition at line 33 of file MediaUserAuth.h.
| virtual zypp::media::AuthData::~AuthData | ( | ) | [inline, virtual] |
Definition at line 37 of file MediaUserAuth.h.
| bool zypp::media::AuthData::valid | ( | ) | const [virtual] |
Checks validity of authentication data.
Reimplemented in zypp::media::CurlAuthData.
Definition at line 27 of file MediaUserAuth.cc.
References password(), and username().
| void zypp::media::AuthData::setUserName | ( | std::string | username | ) | [inline] |
Definition at line 46 of file MediaUserAuth.h.
References _username.
Referenced by zypp::media::MediaCurl::getDoesFileExist(), and zypp::media::MediaCurl::getFileCopy().
| void zypp::media::AuthData::setPassword | ( | std::string | password | ) | [inline] |
| std::string zypp::media::AuthData::username | ( | ) | const [inline] |
Definition at line 49 of file MediaUserAuth.h.
References _username.
Referenced by zypp::media::CurlAuthData::getUserPwd(), zypp::media::CurlAuthData::valid(), and valid().
| std::string zypp::media::AuthData::password | ( | ) | const [inline] |
Definition at line 50 of file MediaUserAuth.h.
References _password.
Referenced by zypp::media::CurlAuthData::getUserPwd(), zypp::media::CurlAuthData::valid(), and valid().
| std::ostream & zypp::media::AuthData::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
Reimplemented in zypp::media::CurlAuthData.
Definition at line 32 of file MediaUserAuth.cc.
References _password, and _username.
Referenced by zypp::media::CurlAuthData::dumpOn(), and zypp::media::operator<<().
std::string zypp::media::AuthData::_username [private] |
Definition at line 56 of file MediaUserAuth.h.
Referenced by dumpOn(), setUserName(), and username().
std::string zypp::media::AuthData::_password [private] |
Definition at line 57 of file MediaUserAuth.h.
Referenced by dumpOn(), password(), and setPassword().
1.5.3