/* */ #ifndef D_AUTH_CONFIG_H #define D_AUTH_CONFIG_H #include "common.h" #include #include #include namespace aria2 { class AuthConfig { private: std::string authScheme_; std::string user_; std::string password_; public: AuthConfig(); AuthConfig(std::string user, 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_; } static std::unique_ptr create(std::string user, std::string password); }; std::ostream& operator<<(std::ostream& o, const std::shared_ptr& authConfig); } // namespace aria2 #endif // D_AUTH_CONFIG_H