Curl HTTP authentication data.
More...
#include <MediaUserAuth.h>
|
static long | auth_type_str2long (std::string &auth_type_str) |
| Converts a string of comma separated list of authetication type names into a long of ORed CURLAUTH_* identifiers. More...
|
|
static std::string | auth_type_long2str (long auth_type) |
| Converts a long of ORed CURLAUTH_* identifiers into a string of comma separated list of authentication type names. More...
|
|
Curl HTTP authentication data.
Definition at line 74 of file MediaUserAuth.h.
zypp::media::CurlAuthData::CurlAuthData |
( |
| ) |
|
Default constructor.
Initializes username and password to empty strings and authetication type to CURLAUTH_NONE.
Definition at line 69 of file MediaUserAuth.cc.
zypp::media::CurlAuthData::CurlAuthData |
( |
const AuthData & |
authData | ) |
|
zypp::media::CurlAuthData::CurlAuthData |
( |
std::string & |
username, |
|
|
std::string & |
password, |
|
|
std::string & |
auth_type |
|
) |
| |
|
inline |
zypp::media::CurlAuthData::CurlAuthData |
( |
std::string & |
username, |
|
|
std::string & |
password, |
|
|
long |
auth_type |
|
) |
| |
|
inline |
bool zypp::media::CurlAuthData::valid |
( |
| ) |
const |
|
virtual |
Checks validity of authentication data.
- Returns
- true if the object contains non-empty username, non-empty password, and specifies authentication type; false otherwise.
Reimplemented from zypp::media::AuthData.
Definition at line 81 of file MediaUserAuth.cc.
void zypp::media::CurlAuthData::setAuthType |
( |
std::string |
auth_type | ) |
|
|
inline |
Set HTTP authentication type(s) to use.
- Parameters
-
comma | separated list of HTTP authentication type names |
Definition at line 107 of file MediaUserAuth.h.
void zypp::media::CurlAuthData::setAuthType |
( |
long |
auth_type | ) |
|
|
inline |
long zypp::media::CurlAuthData::authType |
( |
| ) |
|
|
inline |
const std::string zypp::media::CurlAuthData::authTypeAsString |
( |
| ) |
|
|
inline |
const std::string zypp::media::CurlAuthData::getUserPwd |
( |
| ) |
const |
|
inline |
long zypp::media::CurlAuthData::auth_type_str2long |
( |
std::string & |
auth_type_str | ) |
|
|
static |
Converts a string of comma separated list of authetication type names into a long of ORed CURLAUTH_* identifiers.
The method also automatically leaves out any auth types declared not supported by curl_version_info().
- Exceptions
-
Definition at line 93 of file MediaUserAuth.cc.
std::string zypp::media::CurlAuthData::auth_type_long2str |
( |
long |
auth_type | ) |
|
|
static |
Converts a long of ORed CURLAUTH_* identifiers into a string of comma separated list of authentication type names.
Definition at line 145 of file MediaUserAuth.cc.
std::ostream & zypp::media::CurlAuthData::dumpOn |
( |
std::ostream & |
str | ) |
const |
|
virtual |
std::string zypp::media::CurlAuthData::_auth_type_str |
|
private |
long zypp::media::CurlAuthData::_auth_type |
|
private |
The documentation for this class was generated from the following files: