/* */ #ifndef D_AUTH_CONFIG_H #define D_AUTH_CONFIG_H #include "common.h" #include #include #include "SharedHandle.h" namespace aria2 { class AuthConfig { private: std::string authScheme_; std::string user_; std::string password_; public: AuthConfig(); AuthConfig(const std::string& user, const std::string& password); ~AuthConfig(); // Don't allow copying AuthConfig(const AuthConfig&); AuthConfig& operator=(const AuthConfig&); std::string getAuthText() const; const std::string& getUser() const { return user_; } const std::string& getPassword() const { return password_; } }; std::ostream& operator<<(std::ostream& o, const SharedHandle& authConfig); } // namespace aria2 #endif // D_AUTH_CONFIG_H