Class for handling media authentication data.
More...
#include <zypp-media/auth/authdata.h>
Class for handling media authentication data.
This is the most generic class containing only username and password members.
Definition at line 30 of file authdata.h.
◆ AuthData() [1/3]
| zypp::media::AuthData::AuthData |
( |
| ) |
|
|
inline |
◆ AuthData() [2/3]
| zypp::media::AuthData::AuthData |
( |
const Url & | url | ) |
|
◆ AuthData() [3/3]
| zypp::media::AuthData::AuthData |
( |
std::string | username, |
|
|
std::string | password ) |
|
inline |
◆ ~AuthData()
| virtual zypp::media::AuthData::~AuthData |
( |
| ) |
|
|
inlinevirtual |
◆ valid()
| bool zypp::media::AuthData::valid |
( |
| ) |
const |
|
virtual |
Checks validity of authentication data.
- Returns
- true if the object contains non-empty username and non-empty password, false otherwise.
Reimplemented in zypp::media::CurlAuthData.
Definition at line 30 of file authdata.cc.
◆ setUrl()
| void zypp::media::AuthData::setUrl |
( |
const Url & | url | ) |
|
|
inline |
◆ setUsername()
| void zypp::media::AuthData::setUsername |
( |
const std::string & | username | ) |
|
|
inline |
◆ setPassword()
| void zypp::media::AuthData::setPassword |
( |
const std::string & | password | ) |
|
|
inline |
◆ url()
| Url zypp::media::AuthData::url |
( |
| ) |
const |
|
inline |
◆ username()
| std::string zypp::media::AuthData::username |
( |
| ) |
const |
|
inline |
◆ password()
| std::string zypp::media::AuthData::password |
( |
| ) |
const |
|
inline |
◆ lastDatabaseUpdate()
| 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.
◆ setLastDatabaseUpdate()
| void zypp::media::AuthData::setLastDatabaseUpdate |
( |
time_t | time | ) |
|
◆ extraValues() [1/2]
| const std::map< std::string, std::string > & zypp::media::AuthData::extraValues |
( |
| ) |
const |
◆ extraValues() [2/2]
| std::map< std::string, std::string > & zypp::media::AuthData::extraValues |
( |
| ) |
|
◆ dumpOn()
| std::ostream & zypp::media::AuthData::dumpOn |
( |
std::ostream & | str | ) |
const |
|
virtual |
◆ dumpAsIniOn()
| std::ostream & zypp::media::AuthData::dumpAsIniOn |
( |
std::ostream & | str | ) |
const |
|
virtual |
◆ _url
| Url zypp::media::AuthData::_url |
|
private |
◆ _username
| std::string zypp::media::AuthData::_username |
|
private |
◆ _password
| std::string zypp::media::AuthData::_password |
|
private |
◆ _lastChange
| time_t zypp::media::AuthData::_lastChange |
|
private |
◆ _extraValues
| std::map<std::string, std::string> zypp::media::AuthData::_extraValues |
|
private |
The documentation for this class was generated from the following files: