Molybden API
Loading...
Searching...
No Matches
http_auth_prefs.hpp
1// Copyright (c) 2000-2023 TeamDev Ltd. All rights reserved.
2// TeamDev PROPRIETARY and CONFIDENTIAL.
3// Use is subject to license terms.
4
5#ifndef MOLYBDEN_HTTP_AUTH_PREFS_HPP
6#define MOLYBDEN_HTTP_AUTH_PREFS_HPP
7
8#include <memory>
9#include <string>
10
11namespace molybden {
12
13class Network;
14
19 public:
20 virtual ~HttpAuthPrefs() = default;
21
25 virtual std::shared_ptr<Network> network() = 0;
26
31 virtual std::string serverWhitelist() = 0;
32
41 virtual void setServerWhitelist(const std::string& server_whitelist) = 0;
42
47 virtual std::string delegateWhitelist() = 0;
48
57 virtual void setDelegateWhitelist(const std::string& delegate_whitelist) = 0;
58};
59
60} // namespace molybden
61
62#endif // MOLYBDEN_HTTP_AUTH_PREFS_HPP
The HTTP authorization preferences.
Definition http_auth_prefs.hpp:18
virtual std::string serverWhitelist()=0
Returns the server HTTP authorization whitelist as a string with comma/semicolon separated server URL...
virtual void setServerWhitelist(const std::string &server_whitelist)=0
Configures the server HTTP authorization whitelist.
virtual void setDelegateWhitelist(const std::string &delegate_whitelist)=0
Configures the HTTP network delegate authorization whitelist.
virtual std::shared_ptr< Network > network()=0
The network of these authorization preferences.
virtual std::string delegateWhitelist()=0
Returns the HTTP network delegate authorization whitelist as a string with comma/semicolon separated ...