20 #ifndef RIPPLE_SERVER_ROLE_H_INCLUDED
21 #define RIPPLE_SERVER_ROLE_H_INCLUDED
23 #include <ripple/beast/net/IPEndpoint.h>
24 #include <ripple/json/json_value.h>
25 #include <ripple/resource/ResourceManager.h>
26 #include <ripple/server/Handoff.h>
27 #include <ripple/server/Port.h>
28 #include <boost/asio/ip/network_v4.hpp>
29 #include <boost/asio/ip/network_v6.hpp>
30 #include <boost/utility/string_view.hpp>
59 boost::string_view
const& user);
63 Resource::Manager& manager,
66 boost::string_view
const& user,
Resource::Consumer requestInboundEndpoint(Resource::Manager &manager, beast::IP::Endpoint const &remoteAddress, Role const &role, boost::string_view const &user, boost::string_view const &forwardedFor)
boost::asio::ip::address Address
boost::string_view forwardedFor(http_request_type const &request)
Role requestRole(Role const &required, Port const &port, Json::Value const ¶ms, beast::IP::Endpoint const &remoteIp, boost::string_view const &user)
Return the allowed privilege role.
bool isUnlimited(Role const &role)
ADMIN and IDENTIFIED roles shall have unlimited resources.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
A version-independent IP address and port combination.
boost::beast::http::request< boost::beast::http::dynamic_body > http_request_type
bool ipAllowed(beast::IP::Address const &remoteIp, std::vector< boost::asio::ip::network_v4 > const &nets4, std::vector< boost::asio::ip::network_v6 > const &nets6)
True if remoteIp is in any of adminIp.
Role
Indicates the level of administrative permission to grant.