A normal proxy-chain definition that lists each level of the chain as either a string or regular expression.
- Examples:
- example_service.php, example_service_POST.php, and example_service_that_proxies.php.
Definition at line 42 of file ProxyChain.php.
◆ __construct()
CAS_ProxyChain::__construct |
( |
array |
$chain | ) |
|
A chain is an array of strings or regexp strings that will be matched against. Regexp will be matched with preg_match and strings will be matched from the beginning. A string must fully match the beginning of an proxy url. So you can define a full domain as acceptable or go further down. Proxies have to be defined in reverse from the service to the user. If a user hits service A get proxied via B to service C the list of acceptable proxies on C would be array(B,A);
- Parameters
-
array | $chain | A chain of proxies |
Definition at line 60 of file ProxyChain.php.
◆ isSizeValid()
CAS_ProxyChain::isSizeValid |
( |
array |
$list | ) |
|
|
protected |
Validate the size of the the list as compared to our chain.
- Parameters
-
array | $list | List of proxies |
- Returns
- bool
Definition at line 123 of file ProxyChain.php.
Referenced by matches().
◆ matches()
CAS_ProxyChain::matches |
( |
array |
$list | ) |
|
◆ $chain
CAS_ProxyChain::$chain = array() |
|
protected |