Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
web::IPAdminVerificationStrategy Class Reference

Admin verification strategy that checks the ip address of the client. More...

#include <AdminVerificationStrategy.hpp>

Inheritance diagram for web::IPAdminVerificationStrategy:
Collaboration diagram for web::IPAdminVerificationStrategy:

Public Member Functions

bool isAdmin (RequestHeader const &, std::string_view ip) const override
 Checks whether request is from a host that is considered authorized as admin by checking the ip address.
 
- Public Member Functions inherited from web::AdminVerificationStrategy

Additional Inherited Members

- Public Types inherited from web::AdminVerificationStrategy
using RequestHeader = boost::beast::http::request<boost::beast::http::string_body>::header_type
 

Detailed Description

Admin verification strategy that checks the ip address of the client.

Member Function Documentation

◆ isAdmin()

bool web::IPAdminVerificationStrategy::isAdmin ( RequestHeader const & ,
std::string_view ip ) const
overridevirtual

Checks whether request is from a host that is considered authorized as admin by checking the ip address.

Parameters
ipThe ip addr of the client
Returns
true if authorized; false otherwise

Implements web::AdminVerificationStrategy.


The documentation for this class was generated from the following files: