13 #ifndef ZYPP_ZYPP_DETAIL_URLCREDENTIALEXTRACTOR_P_H 14 #define ZYPP_ZYPP_DETAIL_URLCREDENTIALEXTRACTOR_P_H 63 _cmPtr->addUserCred( url_r );
68 template<
class TContainer>
70 {
bool ret =
false;
for (
const Url & url : urls_r ) {
if (
collect( url ) && !ret ) ret =
true; }
return ret; }
81 template<
class TContainer>
83 {
bool ret =
false;
for (
Url & url : urls_r ) {
if (
extract( url ) && !ret ) ret =
true; }
return ret; }
87 scoped_ptr<media::CredentialManager>
_cmPtr;
void setPassword(const std::string &pass, EEncoding eflag=zypp::url::E_DECODED)
Set the password in the URL authority.
bool hasCredentialsInAuthority() const
Returns true if username and password are encoded in the authority component.
Easy-to use interface to the ZYPP dependency resolver.