libzypp 17.31.23
|
Class for handling media authentication data. More...
#include </home/abuild/rpmbuild/BUILD/libzypp-17.31.23/zypp-media/auth/authdata.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 |
time_t | lastDatabaseUpdate () const |
void | setLastDatabaseUpdate (time_t time) |
const std::map< std::string, std::string > & | extraValues () const |
std::map< std::string, std::string > & | extraValues () |
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 |
time_t | _lastChange |
std::map< std::string, std::string > | _extraValues |
Class for handling media authentication data.
This is the most generic class containing only username and password members.
Definition at line 28 of file authdata.h.
|
inline |
Definition at line 31 of file authdata.h.
zypp::media::AuthData::AuthData | ( | const Url & | url | ) |
Definition at line 22 of file authdata.cc.
|
inline |
Definition at line 36 of file authdata.h.
|
inlinevirtual |
Definition at line 40 of file authdata.h.
|
virtual |
Checks validity of authentication data.
Reimplemented in zypp::media::CurlAuthData.
Definition at line 30 of file authdata.cc.
|
inline |
Definition at line 49 of file authdata.h.
|
inline |
Definition at line 50 of file authdata.h.
|
inline |
Definition at line 51 of file authdata.h.
|
inline |
Definition at line 53 of file authdata.h.
|
inline |
Definition at line 54 of file authdata.h.
|
inline |
Definition at line 55 of file authdata.h.
time_t zypp::media::AuthData::lastDatabaseUpdate | ( | ) | const |
Returns the timestamp of the last change to the database this credential is stored in, or 0 if it is not known.
Definition at line 35 of file authdata.cc.
void zypp::media::AuthData::setLastDatabaseUpdate | ( | time_t | time | ) |
Definition at line 40 of file authdata.cc.
const std::map< std::string, std::string > & zypp::media::AuthData::extraValues | ( | ) | const |
Definition at line 45 of file authdata.cc.
std::map< std::string, std::string > & zypp::media::AuthData::extraValues | ( | ) |
Definition at line 50 of file authdata.cc.
|
virtual |
Reimplemented in zypp::media::CurlAuthData.
Definition at line 55 of file authdata.cc.
|
virtual |
Definition at line 66 of file authdata.cc.
|
private |
Definition at line 72 of file authdata.h.
|
private |
Definition at line 73 of file authdata.h.
|
private |
Definition at line 74 of file authdata.h.
|
private |
Definition at line 75 of file authdata.h.
|
private |
Definition at line 76 of file authdata.h.