12#ifndef ZYPP_CURL_AUTH_CURLAUTHDATA_H_INCLUDED
13#define ZYPP_CURL_AUTH_CURLAUTHDATA_H_INCLUDED
15#include <zypp-media/auth/AuthData>
32 CurlAuthData(std::string & username, std::string & password, std::string & auth_type)
33 :
AuthData(username,password), _auth_type_str(auth_type)
35 _auth_type = auth_type_str2long(auth_type);
38 CurlAuthData(std::string & username, std::string & password,
long auth_type)
39 :
AuthData(username,password), _auth_type(auth_type)
41 _auth_type_str = auth_type_long2str(auth_type);
49 bool valid()
const override;
57 _auth_type_str = auth_type; _auth_type = auth_type_str2long(auth_type);
67 _auth_type = auth_type;
68 _auth_type_str = auth_type_long2str(auth_type);
74 std::string
getUserPwd()
const {
return username() +
":" + password(); }
86 static long auth_type_str2long( std::string & auth_type_str );
87 static long auth_type_str2long(
const std::string &auth_type_str );
93 static std::string auth_type_long2str(
long auth_type);
95 std::ostream &
dumpOn( std::ostream &
str )
const override;
String related utilities and Regular expression matching.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API