bes
Updated for version 3.20.8
|
Can a given URL be dereferenced given the BES's configuration? More...
#include <AllowedHosts.h>
Public Member Functions | |
bool | is_allowed (const std::string &candidate_url) |
Static Public Member Functions | |
static AllowedHosts * | theHosts () |
Static accessor for the singleton. More... | |
Can a given URL be dereferenced given the BES's configuration?
Embodies a configuration based remote access allowed list and provides a simple API, is_allowed() for determining which resources may be accessed. This enables a system administrator to control the remote systems a particular BES daemon can access.
Definition at line 51 of file AllowedHosts.h.
bool AllowedHosts::is_allowed | ( | const std::string & | candidate_url | ) |
This method provides an access condition assessment for URLs and files to be accessed by the BES. The http and https URLs are verified against a allowed hosts list assembled from configuration. All file URLs are checked to be sure that they reference a resource within the BES default catalog.
candidate_url | The URL to test |
Definition at line 90 of file AllowedHosts.cc.
|
static |
Static accessor for the singleton.
Definition at line 58 of file AllowedHosts.cc.