|
libzypp
9.1.2
|
Class for handling media authentication data. More...
#include <MediaUserAuth.h>

Public Member Functions | |
| AuthData () | |
| AuthData (const Url &url) | |
| AuthData (const std::string &username, const std::string &password) | |
| virtual | ~AuthData () |
| virtual bool | valid () const |
| Checks validity of authentication data. | |
| void | setUrl (const Url &url) |
| void | setUsername (const std::string &username) |
| void | setPassword (const std::string &password) |
| Url | url () const |
| std::string | username () const |
| std::string | password () const |
| virtual std::ostream & | dumpOn (std::ostream &str) const |
| virtual std::ostream & | dumpAsIniOn (std::ostream &str) const |
Private Attributes | |
| Url | _url |
| std::string | _username |
| std::string | _password |
Class for handling media authentication data.
This is the most generic class containing only username and password members.
Definition at line 32 of file MediaUserAuth.h.
| zypp::media::AuthData::AuthData | ( | ) | [inline] |
Definition at line 35 of file MediaUserAuth.h.
| zypp::media::AuthData::AuthData | ( | const Url & | url | ) |
Definition at line 29 of file MediaUserAuth.cc.
References _password, _username, zypp::Url::getPassword(), and zypp::Url::getUsername().
| zypp::media::AuthData::AuthData | ( | const std::string & | username, |
| const std::string & | password | ||
| ) | [inline] |
Definition at line 40 of file MediaUserAuth.h.
| virtual zypp::media::AuthData::~AuthData | ( | ) | [inline, virtual] |
Definition at line 44 of file MediaUserAuth.h.
| bool zypp::media::AuthData::valid | ( | ) | const [virtual] |
Checks validity of authentication data.
Reimplemented in zypp::media::CurlAuthData.
Definition at line 37 of file MediaUserAuth.cc.
References password(), and username().
| void zypp::media::AuthData::setUrl | ( | const Url & | url | ) | [inline] |
Definition at line 53 of file MediaUserAuth.h.
| void zypp::media::AuthData::setUsername | ( | const std::string & | username | ) | [inline] |
Definition at line 54 of file MediaUserAuth.h.
References _username, and username().
Referenced by zypp::media::MediaCIFS::authenticate().
| void zypp::media::AuthData::setPassword | ( | const std::string & | password | ) | [inline] |
Definition at line 55 of file MediaUserAuth.h.
References _password, and password().
Referenced by zypp::media::MediaCIFS::authenticate().
| Url zypp::media::AuthData::url | ( | ) | const [inline] |
Definition at line 57 of file MediaUserAuth.h.
References _url.
Referenced by zypp::media::CredentialManager::addCred(), and setUrl().
| std::string zypp::media::AuthData::username | ( | ) | const [inline] |
Definition at line 58 of file MediaUserAuth.h.
References _username.
Referenced by zypp::media::MediaCIFS::attachTo(), zypp::media::CurlAuthData::getUserPwd(), setUsername(), valid(), and zypp::media::CurlAuthData::valid().
| std::string zypp::media::AuthData::password | ( | ) | const [inline] |
Definition at line 59 of file MediaUserAuth.h.
References _password.
Referenced by zypp::media::CredentialManager::addGlobalCred(), zypp::media::CredentialManager::addUserCred(), zypp::media::MediaCIFS::attachTo(), zypp::media::CurlAuthData::getUserPwd(), setPassword(), valid(), and zypp::media::CurlAuthData::valid().
| std::ostream & zypp::media::AuthData::dumpOn | ( | std::ostream & | str | ) | const [virtual] |
Reimplemented in zypp::media::CurlAuthData.
Definition at line 42 of file MediaUserAuth.cc.
References _password, and _username.
Referenced by zypp::media::operator<<().
| std::ostream & zypp::media::AuthData::dumpAsIniOn | ( | std::ostream & | str | ) | const [virtual] |
Definition at line 50 of file MediaUserAuth.cc.
References _password, _url, _username, zypp::Url::asString(), zypp::Url::isValid(), zypp::url::ViewOption::WITH_PASSWORD, and zypp::url::ViewOption::WITH_USERNAME.
Url zypp::media::AuthData::_url [private] |
Definition at line 66 of file MediaUserAuth.h.
Referenced by dumpAsIniOn(), setUrl(), and url().
std::string zypp::media::AuthData::_username [private] |
Definition at line 67 of file MediaUserAuth.h.
Referenced by AuthData(), dumpAsIniOn(), dumpOn(), setUsername(), and username().
std::string zypp::media::AuthData::_password [private] |
Definition at line 68 of file MediaUserAuth.h.
Referenced by AuthData(), dumpAsIniOn(), dumpOn(), password(), and setPassword().
1.7.6.1